Just call out to puppet, when it fails, then your deploy will bail out too.
Essentially this is the best way, beware that it will break if more than one server is involved and some have puppet, and some don't. For that reason people often implement a run() with a longer chunk of bash script, so that the script will do the right thing (pull down puppet, then install) or just install if it's already there. Good luck Lee Hambley -- http://lee.hambley.name/ +49 (0) 170 298 5667 On 28 February 2013 16:28, Peter M Souter <[email protected]> wrote: > Hi guys, > > Quick question: What would be the best way of making sure a service is > installed on the remote server, and then aborting if it's not? > > Right now I have something like this: http://pastie.org/6354736 > > it seems a bit messy, but that's how I've seen it done in other capistrano > recipes that run a command that has an exit code. > > Thanks! > > -- > -- > * You received this message because you are subscribed to the Google > Groups "Capistrano" group. > * To post to this group, send email to [email protected] > * To unsubscribe from this group, send email to > [email protected] For more options, visit this > group at http://groups.google.com/group/capistrano?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Capistrano" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- -- * You received this message because you are subscribed to the Google Groups "Capistrano" group. * To post to this group, send email to [email protected] * To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/capistrano?hl=en --- You received this message because you are subscribed to the Google Groups "Capistrano" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
