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:
Anders Kaseorg 2020-02-18 18:57:46 -08:00 committed by Tim Abbott
parent d918626135
commit 91edb7dc43
1 changed files with 1 additions and 1 deletions

View File

@ -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 \