]>
Commit | Line | Data |
---|---|---|
ba2cf1b5 | 1 | #!/bin/bash |
cfa8eb92 | 2 | ## Run Puppet locally using puppet_apply |
2d02240a | 3 | git submodule update --init |
cfa8eb92 | 4 | /usr/local/sbin/puppet_apply `pwd`/manifests/site.pp |
596f9fef IB |
5 | |
6 | ## Log status of the Puppet run | |
7 | if [ $? -eq 0 ] | |
8 | then | |
9 | /usr/bin/logger -i "Puppet has run successfully" -t "puppet-run" | |
10 | exit 0 | |
11 | else | |
12 | /usr/bin/logger -i "Puppet has ran into an error, please run Puppet manually" -t "puppet-run" | |
13 | exit 1 | |
14 | fi | |
15 |