-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add manage_service parameter #149
Conversation
This allows users to decide whether the module should manage the dns service. The check defaults to true, but in case users want to manage the service autonomously they can. This also solves "duplicate declaration" issues when the service is declared in another .pp file This does not influence package installation.
@ekohl Ok, I've pointed all the calls to Class['dns::service'] and added tests to dns_init_spec.rb for the manage_service parameter. |
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.
Overall 👍
spec/defines/dns_zone_spec.rb
Outdated
@@ -38,7 +38,7 @@ | |||
:group => 'named', | |||
:mode => '0644', | |||
:replace => 'false', | |||
:notify => 'Service[named]', | |||
:notify => 'Class[Dns::Service]', |
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.
A more correct way of checking uses the catalog. I realize this was already incorrect, but I'd appreciate it if you fixed it while changing this part
:notify => 'Class[Dns::Service]', | |
).that_notifies('Class[Dns::Service]') |
Sorry about the horrible delay on a one-line fix :/ Should be ok now! :) |
merged, thanks @flyingstar16! |
This allows users to decide whether the module should manage the
dns service. The check defaults to true, but in case users want to
manage the service autonomously they can.
This also solves "duplicate declaration" issues when the service
is declared in another .pp file
This does not influence package installation.