]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blame_incremental - scripts/arch_install_script.sh
Populate keyring at install
[perso/Immae/Projets/Puppet.git] / scripts / arch_install_script.sh
... / ...
CommitLineData
1#!/bin/bash
2
3git_branch="$1"
4environment="$2"
5CODE_PATH="/etc/puppetlabs/code"
6
7rm -rf $CODE_PATH
8
9pacman-key --init
10pacman-key --populate archlinux
11
12git clone -b $git_branch --recursive https://git.immae.eu/perso/Immae/Projets/Puppet.git $CODE_PATH
13puppet apply --environment $environment --tags base_installation --test $CODE_PATH/manifests/site.pp
14# The password seed requires puppet to be run twice
15puppet apply --environment $environment --tags base_installation --test $CODE_PATH/manifests/site.pp
16