aboutsummaryrefslogblamecommitdiff
path: root/modules/base_installation/files/scripts/puppet_reset_and_apply
blob: 6743044152de39e24c0ef3bd7e0b37b33b40448a (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                       
                               


                                     
#!/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