]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blame - modules/base_installation/files/scripts/puppet_reset_and_apply
Add puppet_apply script with lockfile
[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"
9fi
10
d765eedf 11git reset --hard origin/$branch
2499f7e7
IB
12
13git submodule update --init
cfa8eb92 14puppet_apply --test manifests/site.pp