2013-09-02 14:01:50 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2023-02-03 15:05:09 +00:00
|
|
|
set -e
|
|
|
|
|
2013-09-02 14:01:50 +00:00
|
|
|
if [ "x$COSMOS_VERBOSE" = "xy" ]; then
|
2016-08-27 22:11:33 +00:00
|
|
|
args="--verbose --show_diff"
|
2013-09-02 14:01:50 +00:00
|
|
|
else
|
|
|
|
args="--logdest=syslog"
|
|
|
|
fi
|
|
|
|
|
2023-02-03 15:05:09 +00:00
|
|
|
if [ -f /usr/bin/puppet ] && [ -d /etc/puppet/manifests ]; then
|
|
|
|
find /etc/puppet/manifests -name \*.pp | while read -r m; do
|
2019-01-15 12:11:15 +00:00
|
|
|
test "x$COSMOS_VERBOSE" = "xy" && echo "$0: Applying Puppet manifest $m"
|
2016-08-27 22:11:33 +00:00
|
|
|
puppet apply $args $m
|
2013-09-02 14:01:50 +00:00
|
|
|
done
|
|
|
|
fi
|