]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blob - modules/cron_puppet/files/post-merge
7310b98ce7bb439840ac0336e2445531bb99e798
[perso/Immae/Projets/Puppet.git] / modules / cron_puppet / files / post-merge
1 #!/bin/bash -e
2 ## Run Puppet locally using puppet apply
3 /usr/bin/puppet apply --modulepath=/etc/puppetlabs/puppet/modules /etc/puppetlabs/puppet/manifests/site.pp
4
5 ## Log status of the Puppet run
6 if [ $? -eq 0 ]
7 then
8 /usr/bin/logger -i "Puppet has run successfully" -t "puppet-run"
9 exit 0
10 else
11 /usr/bin/logger -i "Puppet has ran into an error, please run Puppet manually" -t "puppet-run"
12 exit 1
13 fi
14