blob: 35fa2d7730c734fc7ffaf941e67a821cb6c173bd (
plain) (
tree)
|
|
#!/bin/bash
## Run Puppet locally using puppet apply
git submodule update --init
/usr/bin/puppet apply --test `pwd`/manifests/site.pp
## Log status of the Puppet run
if [ $? -eq 0 ]
then
/usr/bin/logger -i "Puppet has run successfully" -t "puppet-run"
exit 0
else
/usr/bin/logger -i "Puppet has ran into an error, please run Puppet manually" -t "puppet-run"
exit 1
fi
|