Ask Your Question

Puppet check if Chef issued service restart

asked 2015-06-25 10:07:52 -0600

chefnado gravatar image

We have a Chef recipe restarting our Wildfly service following deployments. On two occasions, Puppet started Wildfly while a restart was in progress resulting in 2 instance of Wildfly running. The Wildfly service is set to ensure => 'running'. Our Puppet admin would prefer that we keep the ensure => 'running' setting. One option is disabling the Puppet agent / Restarting wildfly / enabling the puppet agent within the chef recipe. Are there other options that wouldn't require giving the Chef user the ability to stop and start the Puppet agent?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-06-27 09:33:14 -0600

Simple answer would be you shouldn't use both Chef and Puppet. In particular, while Chef is great at doing config management, it's probably not an appropriate choice for application code deployments. Now, if you must use Chef in this way, then allowing Chef to stop and start Puppet sounds like the right solution to me.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-06-25 10:07:52 -0600

Seen: 161 times

Last updated: Jun 27 '15