Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes rsyslog.conf for rhel < 7 and puppet >=4 #289

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fixes rsyslog.conf for rhel < 7 and puppet >=4 #289

wants to merge 1 commit into from

Conversation

fherbert
Copy link

According to puppet docs, to test for undef in erb template, you should use nil (https://puppet.com/docs/puppet/4.10/lang_template_erb.html#scopevariable-or-scopelookupvarvariable)
See also this bug https://tickets.puppetlabs.com/browse/PUP-1467 which basically says with puppet 4 you should be using nil to test for undef, not :undef.
By using :undef, my puppet 4 rhel < 7 clients have the following options created in rsyslog.conf with blank values - causing rsyslog to error (the last error occured in /etc/rsyslog.conf, line 41:"$imjournalIgnorePreviousMessages ") when trying to read the configuration file:

$imjournalStateFile 
$imjournalIgnorePreviousMessages 
$imjournalRatelimitInterval 
$imjournalRatelimitBurst

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant