-
Notifications
You must be signed in to change notification settings - Fork 229
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
make foreman puppet module dir optional #600
Conversation
This is currently work in progress. I'm not sure yet if the tests pass and I also need to adjust the docs. @ekohl @mmoll feedback is highly appreciated :) I noticed that the module creates this directory. I never saw a foreman installation that uses this so I want to make it optional (or get rid of the exec at all). If there are usecases for the directory I will change the default from false to true. |
manifests/server/config.pp
Outdated
exec { 'mkdir -p /usr/share/puppet/modules': | ||
creates => '/usr/share/puppet/modules', | ||
path => ['/usr/bin', '/bin'], | ||
if ($puppet::server::create_foreman_modules_directory == true) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can avoid a parameter:
if '/usr/share/puppet/modules' in $puppet::server::common_modules_path {}
@ekohl I updated the code |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can remove the WIP label
manifests/server/config.pp
Outdated
exec { 'mkdir -p /usr/share/puppet/modules': | ||
creates => '/usr/share/puppet/modules', | ||
path => ['/usr/bin', '/bin'], | ||
if ('/usr/share/puppet/modules' in $puppet::server::common_modules_path) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the parenthesis aren't needed
merged, danke @bastelfreak! |
No description provided.