Puppet Manifest Involving Multiple Nodes

61 views
Skip to first unread message

Rakesh Kathpal

unread,
Sep 12, 2014, 4:15:25 AM9/12/14
to puppet...@googlegroups.com
Hi,

I need to copy of set of files to 10 / 20 nodes but the process is as follows

Copy all files on 1 agent
Validate the files
If successful
only then copy files to other servers
else
revert changes on first node itself and stop

I understand that I can do this for one node but am really confused as to how can control the behavior on multiple nodes.


Thanks,
RK.


Rakesh Kathpal

unread,
Sep 15, 2014, 10:13:46 AM9/15/14
to puppet...@googlegroups.com
Any help ?

Felix Frank

unread,
Sep 15, 2014, 10:41:10 AM9/15/14
to puppet...@googlegroups.com
Hi,

designs like this are rather difficult to achieve with Puppet. They rely
on the paradigm of a scripting engine, with Puppet is not!

Puppet works best once you attain a state of affairs which you can
confidently apply to your agents.

It would perhaps be easiest to do the preliminary steps outside of Puppet.

1. Deploy files to the test instance.
2. Validate, rollback on failure, bail out.
3. Push files to Puppet VCS.

Puppet will can then handle the production deployment for you.

HTH,
Felix

Rakesh Kathpal

unread,
Sep 16, 2014, 2:55:37 AM9/16/14
to puppet...@googlegroups.com
Thanks a ton Felix..

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/5416FA70.8010609%40alumni.tu-berlin.de.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages