matrix-ops/global/post-tasks.d/030puppet
2016-08-28 00:11:33 +02:00

14 lines
274 B
Bash
Executable file

#!/bin/sh
if [ "x$COSMOS_VERBOSE" = "xy" ]; then
args="--verbose --show_diff"
else
args="--logdest=syslog"
fi
if [ -f /usr/bin/puppet -a -d /etc/puppet/manifests ]; then
for m in `find /etc/puppet/manifests -name \*.pp`; do
puppet apply $args $m
done
fi