Ask Your Question

Require service be running to perform install, need to restart post install

asked 2014-06-30 07:42:00 -0600

Origamislayer gravatar image

I'm trying to automate an install of Zenoss and I want to have puppet also control the install of ZenPacks (essentially plugins). The ZenPack install script talks to the Zenoss API to register the ZenPack so the service needs to be running for the install to happen. Once the install script finishes, the Zenoss service needs to be restarted to complete the install. I've tried to do this a few different ways but I always end up getting a dependency cycle error. How can I require the service AND notify it at the same time?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-06-30 09:44:23 -0600

llowder gravatar image

Since require means "do the required thing first" and notify means "do the other thing after, then send it a refresh" there isn't a good way to do this.

One way that will work, though it is hacky, is to setup a refreshonly exec that restarts the service.

This way you wind up with a chain of service -> ZenPack -> exec and can avoid dependency cycles.

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: 2014-06-30 07:42:00 -0600

Seen: 845 times

Last updated: Jun 30 '14