puppet: Fix puppet-lint warning.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg 2020-02-20 17:02:51 -08:00 committed by Tim Abbott
parent bf0f1274fa
commit 9d598d95a6
2 changed files with 4 additions and 3 deletions

View File

@ -22,7 +22,7 @@ class zulip::memcached {
notify => Exec[generate_memcached_sasldb2],
}
exec { 'generate_memcached_sasldb2':
require => [
require => [
Package[$memcached_packages],
Package[$zulip::sasl_modules::sasl_module_packages],
File['/etc/sasl2/memcached-zulip-password'],
@ -30,7 +30,7 @@ class zulip::memcached {
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 \
command => "bash -c 'saslpasswd2 -p -f /etc/sasl2/memcached-sasldb2 \
-a memcached -u \"\$HOSTNAME\" zulip < /etc/sasl2/memcached-zulip-password'",
}
file { '/etc/sasl2/memcached-sasldb2':

View File

@ -64,7 +64,8 @@ def run():
description="Runs the puppet parser validator, "
"checking for syntax errors.")
linter_config.external_linter('puppet-lint',
['puppet-lint'] + PUPPET_CHECK_RULES_TO_EXCLUDE, ['pp'],
['puppet-lint', '--fail-on-warnings'] + PUPPET_CHECK_RULES_TO_EXCLUDE,
['pp'],
fix_arg='--fix',
description="Standard puppet linter"
"(config: tools/linter_lib/exclude.py)")