]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blob - modules/base_installation/files/scripts/puppet_reset_and_apply
Merge branch 'dev'
[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 fi
10
11 git reset --hard origin/$branch
12
13 git submodule update --init
14 puppet_apply --test manifests/site.pp