]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blame - scripts/arch_install_script.sh
Move external modules to other place
[perso/Immae/Projets/Puppet.git] / scripts / arch_install_script.sh
CommitLineData
c15f2234
IB
1#!/bin/bash
2
3git_branch="$1"
4environment="$2"
5CODE_PATH="/etc/puppetlabs/code"
6
7rm -rf $CODE_PATH
8
4772e48c
IB
9pacman-key --init
10pacman-key --populate archlinux
11
c15f2234 12git clone -b $git_branch --recursive https://git.immae.eu/perso/Immae/Projets/Puppet.git $CODE_PATH
48f15fb3
IB
13
14export FACTER_in_chroot="yes"
bfd8ca3f 15puppet apply --environment $environment --tags base_installation --modulepath $CODE_PATH/modules:$CODE_PATH/external_modules --test $CODE_PATH/manifests/site.pp
c15f2234 16# The password seed requires puppet to be run twice
bfd8ca3f 17puppet apply --environment $environment --tags base_installation --modulepath $CODE_PATH/modules:$CODE_PATH/external_modules --test $CODE_PATH/manifests/site.pp
c15f2234 18