aboutsummaryrefslogtreecommitdiff
path: root/scripts/arch_install_script.sh
blob: d2c6107123a7205a017a41a3ecc538c18d0cbe3a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

git_branch="$1"
environment="$2"
CODE_PATH="/etc/puppetlabs/code"

rm -rf $CODE_PATH

pacman-key --init
pacman-key --populate archlinux

git clone -b $git_branch --recursive https://git.immae.eu/perso/Immae/Projets/Puppet.git $CODE_PATH
puppet apply --environment $environment --tags base_installation --test $CODE_PATH/manifests/site.pp
# The password seed requires puppet to be run twice
puppet apply --environment $environment --tags base_installation --test $CODE_PATH/manifests/site.pp