blob: 09e5b035eadd5562299f1368495e782665e438b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
|