]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blob - 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
1 #!/bin/bash
2
3 cd /etc/puppetlabs/code
4 git fetch origin
5
6 branch="master"
7 if [ -n "$1" ]; then
8 branch="$1"
9 shift
10 fi
11
12 git reset --hard origin/$branch
13
14 git submodule update --init
15 puppet_apply "$@" --test manifests/site.pp