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







                       
       

  
                               

                           
                                          
#!/bin/bash

cd /etc/puppetlabs/code
git fetch origin

branch="master"
if [ -n "$1" ]; then
  branch="$1"
  shift
fi

git reset --hard origin/$branch

git submodule update --init
puppet_apply "$@" --test manifests/site.pp