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 "Puppet Unknown variable: 'default_su_group'" #82

Merged
merged 1 commit into from
Oct 30, 2017

Conversation

mookie-
Copy link

@mookie- mookie- commented Oct 27, 2017

The Variable $default_su_group is not there for osfamily Freebsd. Puppet will fail if you have strict variable checking on.

The Variable $default_su_group is not there for osfamily Freebsd. Puppet will fail if you have strict variable checking on.
@@ -9,7 +9,7 @@
$root_group = 'wheel'
$logrotate_bin = '/usr/local/sbin/logrotate'
$conf_params = {
Copy link
Member

Choose a reason for hiding this comment

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

@mookie- Can it just become $conf_params = {} ? (like in the default case)

Copy link
Author

Choose a reason for hiding this comment

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

@alexjfisher I thought about that too but it was added with a commit called "Repair tests" (mookie-@13ce41d#diff-2f383a197b1a428561b364755701d60eR12)
To be honest I haven't looked at the tests yet if it's important to be there. I'll check that tomorrow.

Copy link
Member

Choose a reason for hiding this comment

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

No worries. The current code is broken and this is a definite improvement.

@alexjfisher
Copy link
Member

This looks related to #80

@cliff-wakefield Can you advise?

@cliff-wakefield
Copy link

@alexjfisher certainly issue #80 is related, but only in the sense that the logrotate.conf.erb template wouldn't include any 'su' line without the fix I did the pull request for.

@@ -9,7 +9,7 @@
$root_group = 'wheel'
$logrotate_bin = '/usr/local/sbin/logrotate'
$conf_params = {
Copy link
Member

Choose a reason for hiding this comment

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

No worries. The current code is broken and this is a definite improvement.

@alexjfisher alexjfisher merged commit 741002b into voxpupuli:master Oct 30, 2017
@alexjfisher alexjfisher added the bug Something isn't working label Oct 30, 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.

4 participants