commit
8599d395c2
|
@ -1,13 +1,15 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
if [ "x$COSMOS_VERBOSE" = "xy" ]; then
|
if [ "x$COSMOS_VERBOSE" = "xy" ]; then
|
||||||
args="--verbose --show_diff"
|
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 ] && [ -d /etc/puppet/manifests ]; then
|
||||||
for m in `find /etc/puppet/manifests -name \*.pp`; do
|
find /etc/puppet/manifests -name \*.pp | while read -r m; do
|
||||||
test "x$COSMOS_VERBOSE" = "xy" && echo "$0: Applying Puppet manifest $m"
|
test "x$COSMOS_VERBOSE" = "xy" && echo "$0: Applying Puppet manifest $m"
|
||||||
puppet apply $args $m
|
puppet apply $args $m
|
||||||
done
|
done
|
||||||
|
|
|
@ -15,5 +15,9 @@ if ! test -d "$MODEL_OVERLAY"; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d "$MODEL_OVERLAY/root" ]; then
|
if [ -d "$MODEL_OVERLAY/root" ]; then
|
||||||
chmod -v 0700 "$MODEL_OVERLAY"/root
|
args=""
|
||||||
|
if [ "x$COSMOS_VERBOSE" = "xy" ]; then
|
||||||
|
args="-v"
|
||||||
|
fi
|
||||||
|
chmod ${args} 0700 "$MODEL_OVERLAY"/root
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue