summaryrefslogtreecommitdiff
path: root/puppet/bin
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2014-02-14 15:37:43 +0100
committervarac <varacanero@zeromail.org>2014-02-14 15:37:43 +0100
commit20de385ac787a8a66259bb6fb93a706cbc24d461 (patch)
treefa2e888f2bdaf21fe89174448d512895cd1a4a50 /puppet/bin
parent15ddd997572a4845f5a16f1af16c5ce5b7ac4c11 (diff)
parent902d1dbcbd0761f0dea9c2af1b04d69673d65a9e (diff)
Merge branch 'apply.sh' into 0.6
Diffstat (limited to 'puppet/bin')
-rwxr-xr-xpuppet/bin/apply_on_node.sh30
1 files changed, 30 insertions, 0 deletions
diff --git a/puppet/bin/apply_on_node.sh b/puppet/bin/apply_on_node.sh
new file mode 100755
index 00000000..09e5b035
--- /dev/null
+++ b/puppet/bin/apply_on_node.sh
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+# Script to use on a node for debugging
+# Usage: ./apply_on_node.sh <puppet parameters>
+#
+# Example: ./apply_on_node.sh --debug --verbose
+
+ROOTDIR='/srv/leap'
+PLATFORM="$ROOTDIR"
+MODULEPATH="$PLATFORM/puppet/modules"
+LOG=/var/log/leap.log
+
+# example tags to use
+#TAGS='--tags=leap_base,leap_service,leap_slow'
+#TAGS='--tags=leap_base,leap_slow'
+#TAGS='--tags=leap_base,leap_service'
+
+#######
+# Setup
+#######
+
+puppet apply -v --confdir $PLATFORM/puppet --libdir $PLATFORM/puppet/lib --modulepath=$MODULEPATH $PLATFORM/puppet/manifests/setup.pp $TAGS $@ |tee $LOG 2>&1
+
+#########
+# site.pp
+#########
+
+puppet apply -v --confdir $PLATFORM/puppet --libdir $PLATFORM/puppet/lib --modulepath=$MODULEPATH $PLATFORM/puppet/manifests/site.pp $TAGS $@ |tee $LOG 2>&1
+
+