diff options
Diffstat (limited to 'scripts/arch_install_script.sh')
-rwxr-xr-x | scripts/arch_install_script.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/arch_install_script.sh b/scripts/arch_install_script.sh new file mode 100755 index 0000000..21e202f --- /dev/null +++ b/scripts/arch_install_script.sh | |||
@@ -0,0 +1,13 @@ | |||
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 | git clone -b $git_branch --recursive https://git.immae.eu/perso/Immae/Projets/Puppet.git $CODE_PATH | ||
10 | puppet apply --environment $environment --tags base_installation --test $CODE_PATH/manifests/site.pp | ||
11 | # The password seed requires puppet to be run twice | ||
12 | puppet apply --environment $environment --tags base_installation --test $CODE_PATH/manifests/site.pp | ||
13 | |||