summaryrefslogtreecommitdiffstats
path: root/bootstrap/arch
blob: d05da551a89e5ef608a66d7903eebcf08031b2c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
set -eu

conf_location="/usr/local/share/puppet-tozt"
conf_repo="https://github.com/doy/puppet-tozt"

mkdir -p "$conf_location"
cd "$conf_location" || exit 1
git clone "$conf_repo" .
git checkout pulumi
git submodule update --init --recursive
cp -r /tmp/secrets/ modules/secret/files

set +e
puppet apply --modulepath=./modules --hiera_config=./hiera/hiera.yaml --detailed-exitcodes manifests
puppet_exit=$?
if [ $puppet_exit -eq 2 ]; then
  exit 0
else
  exit $puppet_exit
fi