aboutsummaryrefslogtreecommitdiff
path: root/modules/base_installation
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-06-27 13:30:37 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-06-27 13:30:37 +0200
commitf1d583bfdaf881116e5f9ca9e050307e7acdc28e (patch)
tree1d70c8ae571e25cafe5ad481f3748be3588e0cd6 /modules/base_installation
parentbb0de052ea671bb74c077df89fd4268e42f8714d (diff)
downloadPuppet-f1d583bfdaf881116e5f9ca9e050307e7acdc28e.tar.gz
Puppet-f1d583bfdaf881116e5f9ca9e050307e7acdc28e.tar.zst
Puppet-f1d583bfdaf881116e5f9ca9e050307e7acdc28e.zip
Allow to pass arguments in puppet_reset_and_apply
Diffstat (limited to 'modules/base_installation')
-rw-r--r--modules/base_installation/files/scripts/puppet_reset_and_apply3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/base_installation/files/scripts/puppet_reset_and_apply b/modules/base_installation/files/scripts/puppet_reset_and_apply
index 0350e6e..7ec7053 100644
--- a/modules/base_installation/files/scripts/puppet_reset_and_apply
+++ b/modules/base_installation/files/scripts/puppet_reset_and_apply
@@ -6,9 +6,10 @@ git fetch origin
6branch="master" 6branch="master"
7if [ -n "$1" ]; then 7if [ -n "$1" ]; then
8 branch="$1" 8 branch="$1"
9 shift
9fi 10fi
10 11
11git reset --hard origin/$branch 12git reset --hard origin/$branch
12 13
13git submodule update --init 14git submodule update --init
14puppet_apply --test manifests/site.pp 15puppet_apply "$@" --test manifests/site.pp