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

Enabled undef for service where we dont want puppet control service #319

Merged
merged 1 commit into from
Jun 4, 2014

Conversation

zdenekjanda
Copy link
Contributor

In cases, where nginx is managed within cluster by pacemaker, we need this module not to manage the service by default, although we would like to send it restart notifications on config changes. Therefore 'undef' string can be send, which will then get evaluated and properly send to service class not to manage it.

@jfryman
Copy link
Contributor

jfryman commented May 27, 2014

I am confused why 'undef' is being passed as a string and not a bareword... it would make https://github.com/jfryman/puppet-nginx/pull/319/files#diff-9253f3c9cbffa1500f41d4db2baa8664R30-R35 entirely unnecessary.

@zdenekjanda
Copy link
Contributor Author

You set a default when undef is received to the module, so it will be replaced with your params.pp default running, that will force service to start. So, your module starts it, then corosync stops it on standby node, and so on cycle. The point is you keep managing notify when changing config files, which really works well when undef is passed to ensure - when service is running, it will get notification, if not it will simply pass, entirely compatible with 3rd party management such as Corosync. Tickets at Puppetlabs to enlight this: https://projects.puppetlabs.com/issues/22580 and https://projects.puppetlabs.com/issues/22587#note-2

@jfryman
Copy link
Contributor

jfryman commented Jun 4, 2014

TIL. OK! Thanks for the add!

jfryman pushed a commit that referenced this pull request Jun 4, 2014
Enabled undef for service where we dont want puppet control service
@jfryman jfryman merged commit 99df70b into voxpupuli:master Jun 4, 2014
cegeka-jenkins pushed a commit to cegeka/puppet-nginx that referenced this pull request Oct 23, 2017
Enabled undef for service where we dont want puppet control service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants