summaryrefslogtreecommitdiff
path: root/global/post-tasks.d/030puppet
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2013-09-02 16:01:50 +0200
committerLeif Johansson <leifj@sunet.se>2013-09-02 16:01:50 +0200
commit7515782eb503152dfc3e84fee1260fb10d560df9 (patch)
treece0087dc774a156c6a74f11d3af92ef5686b4972 /global/post-tasks.d/030puppet
import
Diffstat (limited to 'global/post-tasks.d/030puppet')
-rwxr-xr-xglobal/post-tasks.d/030puppet13
1 files changed, 13 insertions, 0 deletions
diff --git a/global/post-tasks.d/030puppet b/global/post-tasks.d/030puppet
new file mode 100755
index 0000000..6b1d33a
--- /dev/null
+++ b/global/post-tasks.d/030puppet
@@ -0,0 +1,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