aboutsummaryrefslogtreecommitdiff
path: root/modules/cron-puppet/files
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2016-08-08 17:54:33 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2016-08-08 17:54:33 +0200
commit596f9fefb01f1419e640f3f3a878443adc047b07 (patch)
treef3828f9cbed38a7f1f0aad6ee0894b1e7c41a006 /modules/cron-puppet/files
parentc81a7f92b58e02c6f3029dda840478ef66b933e1 (diff)
downloadPuppet-596f9fefb01f1419e640f3f3a878443adc047b07.tar.gz
Puppet-596f9fefb01f1419e640f3f3a878443adc047b07.tar.zst
Puppet-596f9fefb01f1419e640f3f3a878443adc047b07.zip
Add cron-puppet module
Diffstat (limited to 'modules/cron-puppet/files')
-rw-r--r--modules/cron-puppet/files/post-merge14
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/cron-puppet/files/post-merge b/modules/cron-puppet/files/post-merge
new file mode 100644
index 0000000..b8dc266
--- /dev/null
+++ b/modules/cron-puppet/files/post-merge
@@ -0,0 +1,14 @@
1#!/bin/bash -e
2## Run Puppet locally using puppet apply
3/usr/bin/puppet apply /etc/puppetlabs/puppet/manifests/site.pp
4
5## Log status of the Puppet run
6if [ $? -eq 0 ]
7then
8 /usr/bin/logger -i "Puppet has run successfully" -t "puppet-run"
9 exit 0
10else
11 /usr/bin/logger -i "Puppet has ran into an error, please run Puppet manually" -t "puppet-run"
12 exit 1
13fi
14