blob: 6743044152de39e24c0ef3bd7e0b37b33b40448a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/bash
cd /etc/puppetlabs/code
git fetch origin
branch="master"
if [ -n "$1" ]; then
branch="$1"
fi
git reset --hard origin/$branch
git submodule update --init
puppet apply --test manifests/site.pp
|