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