aboutsummaryrefslogtreecommitdiff
path: root/modules/base_installation/files/scripts/puppet_reset_and_apply
blob: 0350e6e17e7e78ebe4eeb4029c289490d937fb8e (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