Re: [Puppet Users] Calling puppet from a script

2011-12-01 Thread Brian Gupta
On Thu, Dec 1, 2011 at 9:12 PM, Phil Frost wrote: > On 11/30/2011 11:01 AM, Ted wrote: >> >> I'm trying to call puppet from a bash script and whilst it works, it >> causes my script to end prematurely. >> >> #!/bin/bash >> >> ... >> >> function runPuppetLocally() >> { >>     echo "...running Puppe

Re: [Puppet Users] Calling puppet from a script

2011-12-01 Thread Phil Frost
On 11/30/2011 11:01 AM, Ted wrote: I'm trying to call puppet from a bash script and whilst it works, it causes my script to end prematurely. #!/bin/bash ... function runPuppetLocally() { echo "...running Puppet locally" exec puppet agent --test echo "Puppet complete" } runPuppet

[Puppet Users] Calling puppet from a script

2011-12-01 Thread Ted
I'm trying to call puppet from a bash script and whilst it works, it causes my script to end prematurely. #!/bin/bash ... function runPuppetLocally() { echo "...running Puppet locally" exec puppet agent --test echo "Puppet complete" } runPuppetLocally I presume Puppet is issuing an