pdxcat/puppet-sync — pull request #8 by uphillian (2014-03-28 19:45:30+00:00)
Title: adding -q (--quiet) option for use in scripts

I'm using this within an ansible call so I needed a version that just returns 0 for success and 1 for failure.

The post-receive hook looks like this:
sudo -u puppet ansible puppetmasters -o --private-key=$SSH_KEY -a "$SYNC_COMMAND -q --branch $BRANCH --repository $REPO --deploy $DEPLOY $DELETE"

Doing it with ansible allows for the updates to be made in parallel so it's a lot quicker.