]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blobdiff - scripts/arch_install_script.sh
Merge branch 'dev'
[perso/Immae/Projets/Puppet.git] / scripts / arch_install_script.sh
index d2c6107123a7205a017a41a3ecc538c18d0cbe3a..3f99ec997ba516e9025253773c4deb61f275a795 100755 (executable)
@@ -9,8 +9,12 @@ 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
+git clone -b $git_branch https://git.immae.eu/perso/Immae/Projets/Puppet.git $CODE_PATH
+cd $CODE_PATH
+git submodule update --init
+
+export FACTER_in_chroot="yes"
+puppet apply --environment $environment --tags base_installation --modulepath $CODE_PATH/modules:$CODE_PATH/external_modules --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
+puppet apply --environment $environment --tags base_installation --modulepath $CODE_PATH/modules:$CODE_PATH/external_modules --test $CODE_PATH/manifests/site.pp