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