]>
Commit | Line | Data |
---|---|---|
c15f2234 IB |
1 | #!/bin/bash |
2 | ||
3 | git_branch="$1" | |
4 | environment="$2" | |
5 | CODE_PATH="/etc/puppetlabs/code" | |
6 | ||
7 | rm -rf $CODE_PATH | |
8 | ||
4772e48c IB |
9 | pacman-key --init |
10 | pacman-key --populate archlinux | |
11 | ||
c15f2234 IB |
12 | git clone -b $git_branch --recursive https://git.immae.eu/perso/Immae/Projets/Puppet.git $CODE_PATH |
13 | puppet apply --environment $environment --tags base_installation --test $CODE_PATH/manifests/site.pp | |
14 | # The password seed requires puppet to be run twice | |
15 | puppet apply --environment $environment --tags base_installation --test $CODE_PATH/manifests/site.pp | |
16 |