Ask Your Question
0

The node excution ordering

asked 2015-03-16 07:40:25 -0500

AlexT gravatar image

we have related applications in different servers. how to make the start and stop process in particular order with puppet, like start application in node1 ,then start application in node2?

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
0

answered 2015-03-18 21:11:04 -0500

rnelson0 gravatar image

If you have an application with an external dependency, perhaps you can test if the dependent service is available before starting or entering a wait loop and then finally erroring and exiting.

edit flag offensive delete link more
0

answered 2015-03-19 02:56:07 -0500

carthik gravatar image

You need an orchestration tool. MCollective is one such. With MCollective (the mco command) you can trigger actions, including puppet runs on specific nodes, in a suitable order. mco can use filters (based on classes applied to the node, and facts, for example) to initiate actions on nodes, from a central machine.

edit flag offensive delete link more
0

answered 2015-03-16 15:09:08 -0500

doc75 gravatar image

Hello,

Some specialist might have a more advanced answer, but puppet describe the state of the machine, not the order of the action to reach it. You might look at the wrong tool when you want some specific sequence between nodes.

Hope this helps.

edit flag offensive delete link more

Comments

thanks your answner. could you give some suggestion tools

AlexT gravatar imageAlexT ( 2015-03-16 20:20:10 -0500 )edit

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

Stats

Asked: 2015-03-16 07:40:25 -0500

Seen: 253 times

Last updated: Mar 19 '15