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 exit or something similar which causes
my script to end. Is there a means by which I can call it without it
terminating my script (I don't see the "Puppet complete" message)?

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to