-
-
Notifications
You must be signed in to change notification settings - Fork 39
Conversation
@mvisonneau Hi! Could you explain your motivation? I'm not a fan of using |
@alexjfisher, sure well my issue here is while I use it with the if ! defined(Service[$puppet_service_name]) {
service { $puppet_service_name:
ensure => running,
}
} It causes a duplicate resources error if the puppetdb module is called first. In the meantime I would like to keep the ensure service running definition as part of the puppetserver as it makes more sense to me but sure, if you would rather like to have a manage_service option I'm fine with it, thanks :) |
Hi, Is it possible for you to change/enforce the order your classes are parsed? Handling puppetserver before puppetdb should solve the issue? |
However I like the idea to manage the name of the service and I would merge that if you remove the |
@mvisonneau bump |
61bbb29
to
c7e965b
Compare
let me know if this suits you well |
Tests are failing on master not due to this change. It would be great if there was a unit test for this PR, but if you're not able to do this, please create a tracking Issue for it. |
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 manage_service param is a common pattern. looks good to me.
A rebase is needed and maybe fixing spec tests.
And adding a test for the param would also be super.
c7e965b
to
925a75c
Compare
|
925a75c
to
ef512eb
Compare
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.
looks good to me now
thank you @mvisonneau ! great to see rspec tests added. |
No description provided.