On 2/26/15 9:59 AM, lupindet...@gmail.com wrote: > Hello, > > I'm pondering what is the best way to approach this problem( without > MCollective). > > I have a serverA than will run a DB backup copy it over to serverB, then > serverB do restore then notify serverA for it to execute the next phase of > action. > > This scenario will have to take at least four occurences back and forth > between the two servers, this is to setup a log shipping for a DB server. > > In my mind I can think of; > > A) scp a file as flag every after execution between servers so it will only > proceed to next step if flag file is present. > B) Export an Exec resources from one server to another > C) Create a wrapper script for tasks intended for serverB, execute the script > from serverA using Exec resource. > > I'm biased on B) if it's doable as I would love to have this pure DSL as much > as possible but what would be the downside, performance? > > > Appreciate any input and further ideas. > > cheers lupin >
Hi, What is sounds like you have is a recurring task, not a desired system state. Suggest using puppet to setup ssh keys and a cron job that runs your backup script. Best regards, -g -- Garrett Honeycutt @learnpuppet Puppet Training with LearnPuppet.com Mobile: +1.206.414.8658 -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/54F2202F.8000404%40garretthoneycutt.com. For more options, visit https://groups.google.com/d/optout.