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 On 09/15/2014 04:13 PM, Rakesh Kathpal wrote: > Any help ? > > On Fri, Sep 12, 2014 at 1:45 PM, Rakesh Kathpal <[email protected] > <mailto:[email protected]>> wrote: > > 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. -- 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 [email protected]. 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.
