aboutsummaryrefslogtreecommitdiff
path: root/scripts/arch_install_script.sh
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-03-19 16:21:00 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-03-19 16:21:00 +0100
commitb60b98643a6da52c08ced89779964b722230a7db (patch)
tree0cfb28cfd468a5b681f2b5af2b935c81d2221950 /scripts/arch_install_script.sh
parent985b53a258ee18eaca8d437ae532c232a6d19921 (diff)
parent69da835d04e741f4e85da3c473ba86c8801931fd (diff)
downloadPuppet-b60b98643a6da52c08ced89779964b722230a7db.tar.gz
Puppet-b60b98643a6da52c08ced89779964b722230a7db.tar.zst
Puppet-b60b98643a6da52c08ced89779964b722230a7db.zip
Merge branch 'split_scripts' into dev
Diffstat (limited to 'scripts/arch_install_script.sh')
-rwxr-xr-xscripts/arch_install_script.sh13
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
3git_branch="$1"
4environment="$2"
5CODE_PATH="/etc/puppetlabs/code"
6
7rm -rf $CODE_PATH
8
9git clone -b $git_branch --recursive https://git.immae.eu/perso/Immae/Projets/Puppet.git $CODE_PATH
10puppet apply --environment $environment --tags base_installation --test $CODE_PATH/manifests/site.pp
11# The password seed requires puppet to be run twice
12puppet apply --environment $environment --tags base_installation --test $CODE_PATH/manifests/site.pp
13