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