]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blobdiff - modules/base_installation/files/scripts/puppet_reset_and_apply
Allow to pass arguments in puppet_reset_and_apply
[perso/Immae/Projets/Puppet.git] / modules / base_installation / files / scripts / puppet_reset_and_apply
index 6743044152de39e24c0ef3bd7e0b37b33b40448a..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