]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/commitdiff
Allow to pass arguments in puppet_reset_and_apply
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Wed, 27 Jun 2018 11:30:37 +0000 (13:30 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Wed, 27 Jun 2018 11:30:37 +0000 (13:30 +0200)
modules/base_installation/files/scripts/puppet_reset_and_apply

index 0350e6e17e7e78ebe4eeb4029c289490d937fb8e..7ec7053c105427b6958b17dcb82985acee056f1a 100644 (file)
@@ -6,9 +6,10 @@ git fetch origin
 branch="master"
 if [ -n "$1" ]; then
   branch="$1"
+  shift
 fi
 
 git reset --hard origin/$branch
 
 git submodule update --init
-puppet_apply --test manifests/site.pp
+puppet_apply "$@" --test manifests/site.pp