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

Fix missing su line in default logrotate.conf on Ubuntu #92

Merged

Conversation

szponek
Copy link

@szponek szponek commented Nov 23, 2017

Hi voxpopuli team,

Default /etc/logrotate.conf on Ubuntu includes a line containing 'su root syslog', but this line is not present in default config produced by this module.
Although $su_group is properly set to 'syslog' in manifests/config.pp, $su_user stays undefined and the condition in templates/etc/logrotate.conf.erb:46 is not met.

This commit makes sure $su_user is set properly on Ubuntu resulting in missing line being present in default config file.

Cheers
Grzegorz

@@ -31,11 +31,16 @@
}
}
'Debian': {
$default_su_user = versioncmp($::operatingsystemmajrelease, '14.00') ? {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please use the new $facts[] hash instead of the topscope variable?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit updated. Switched to $facts[] in both the line I added and the one for default su group that was already there.

@bastelfreak
Copy link
Member

Hi @szponek, thanks for the PR. Can you take a look at the used email address in your commit? It isn't associated with your github account.

@szponek szponek force-pushed the fix-default-logrotate-conf-on-ubuntu branch from d26759f to 208fe2d Compare November 26, 2017 19:42
@szponek
Copy link
Author

szponek commented Nov 26, 2017

Hi @bastelfreak - commit email fixed. Thank you for letting me know

@bastelfreak
Copy link
Member

Thanks @szponek !

@bastelfreak bastelfreak merged commit 63ced8e into voxpupuli:master Nov 26, 2017
@bastelfreak bastelfreak added the bug Something isn't working label Nov 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants