Show diff of puppet changes as seen in eduID

This commit is contained in:
John Van de Meulebrouck Brendgard 2016-08-28 00:11:33 +02:00
parent a94f87c41c
commit b81de45e77
No known key found for this signature in database
GPG key ID: 807A5FD4B3337B77

View file

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