summaryrefslogtreecommitdiffstats
path: root/modules/base/files/puppet-tozt
blob: df6220090ee0337261e69d226a3199871aef3e4c (plain) (blame)
1
2
3
4
5
6
7
#!/usr/bin/env bash
set -eu
set -o pipefail

branch=${1:-master}
(cd /usr/local/share/puppet-tozt && sudo git checkout "$branch" && sudo git pull && sudo git submodule update --init --recursive && sudo git reset --hard "origin/$branch")
sudo ruby -W0 /usr/bin/puppet apply --show_diff --modulepath=/usr/local/share/puppet-tozt/modules --hiera_config=/usr/local/share/puppet-tozt/hiera/hiera.yaml /usr/local/share/puppet-tozt/manifests