mirror of https://github.com/zulip/zulip.git
puppet: Fix regeneration of memcached-sasldb2 on password changes.
Puppet doesn’t re-run an exec blocks that’s declared as creating an existing file, even if it’s notified. Remove the creates declaration. Fixes #13730. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
parent
d918626135
commit
91edb7dc43
|
@ -22,12 +22,12 @@ class zulip::memcached {
|
|||
notify => Exec[generate_memcached_sasldb2],
|
||||
}
|
||||
exec { 'generate_memcached_sasldb2':
|
||||
creates => '/etc/sasl2/memcached-sasldb2',
|
||||
require => [
|
||||
Package[$memcached_packages],
|
||||
Package[$zulip::sasl_modules::sasl_module_packages],
|
||||
File['/etc/sasl2/memcached-zulip-password'],
|
||||
],
|
||||
refreshonly => true,
|
||||
# Pass the hostname explicitly because otherwise saslpasswd2
|
||||
# lowercases it and memcached does not.
|
||||
command => "bash -c 'saslpasswd2 -p -f /etc/sasl2/memcached-sasldb2 \
|
||||
|
|
Loading…
Reference in New Issue