summaryrefslogtreecommitdiff
path: root/global/post-tasks.d/030puppet
blob: 6b1d33aa774e208e7738b80e8c1303e0338baf5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

if [ "x$COSMOS_VERBOSE" = "xy" ]; then
   args="--verbose"
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