diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-03-19 19:06:22 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-03-19 19:06:22 +0100 |
commit | 4772e48cc9e2e6ed39776b007cbf0d5514f4c7b9 (patch) | |
tree | 7195a816762dfcc301194faed3a9ab6b7edfca95 /scripts | |
parent | b45f55437f8239acf5576f4f5282b68eb933db32 (diff) | |
download | Puppet-4772e48cc9e2e6ed39776b007cbf0d5514f4c7b9.tar.gz Puppet-4772e48cc9e2e6ed39776b007cbf0d5514f4c7b9.tar.zst Puppet-4772e48cc9e2e6ed39776b007cbf0d5514f4c7b9.zip |
Populate keyring at install
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/arch_install_script.sh | 3 | ||||
-rwxr-xr-x | scripts/ovh_cloud_instance/arch_host_script.sh | 2 | ||||
-rwxr-xr-x | scripts/ovh_vps_ssd/arch_chroot_script.sh | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/scripts/arch_install_script.sh b/scripts/arch_install_script.sh index 21e202f..d2c6107 100755 --- a/scripts/arch_install_script.sh +++ b/scripts/arch_install_script.sh | |||
@@ -6,6 +6,9 @@ CODE_PATH="/etc/puppetlabs/code" | |||
6 | 6 | ||
7 | rm -rf $CODE_PATH | 7 | rm -rf $CODE_PATH |
8 | 8 | ||
9 | pacman-key --init | ||
10 | pacman-key --populate archlinux | ||
11 | |||
9 | git clone -b $git_branch --recursive https://git.immae.eu/perso/Immae/Projets/Puppet.git $CODE_PATH | 12 | git clone -b $git_branch --recursive https://git.immae.eu/perso/Immae/Projets/Puppet.git $CODE_PATH |
10 | puppet apply --environment $environment --tags base_installation --test $CODE_PATH/manifests/site.pp | 13 | puppet apply --environment $environment --tags base_installation --test $CODE_PATH/manifests/site.pp |
11 | # The password seed requires puppet to be run twice | 14 | # The password seed requires puppet to be run twice |
diff --git a/scripts/ovh_cloud_instance/arch_host_script.sh b/scripts/ovh_cloud_instance/arch_host_script.sh index 3408563..42dcc4a 100755 --- a/scripts/ovh_cloud_instance/arch_host_script.sh +++ b/scripts/ovh_cloud_instance/arch_host_script.sh | |||
@@ -36,7 +36,7 @@ for i in /mnt/*; do | |||
36 | done | 36 | done |
37 | ##### /FIXME #### | 37 | ##### /FIXME #### |
38 | 38 | ||
39 | sudo pacstrap /mnt base git puppet | 39 | sudo pacstrap -G /mnt base git puppet |
40 | 40 | ||
41 | echo "$PART / auto defaults 0 1" | sudo tee /mnt/etc/fstab | 41 | echo "$PART / auto defaults 0 1" | sudo tee /mnt/etc/fstab |
42 | # /Install very basic system | 42 | # /Install very basic system |
diff --git a/scripts/ovh_vps_ssd/arch_chroot_script.sh b/scripts/ovh_vps_ssd/arch_chroot_script.sh index 9dc5c46..7b7887f 100755 --- a/scripts/ovh_vps_ssd/arch_chroot_script.sh +++ b/scripts/ovh_vps_ssd/arch_chroot_script.sh | |||
@@ -21,7 +21,7 @@ for i in /mnt/*; do | |||
21 | done | 21 | done |
22 | ##### /FIXME #### | 22 | ##### /FIXME #### |
23 | 23 | ||
24 | pacstrap /mnt base git puppet | 24 | pacstrap -G /mnt base git puppet |
25 | 25 | ||
26 | echo "$PART / auto defaults 0 1" > /mnt/etc/fstab | 26 | echo "$PART / auto defaults 0 1" > /mnt/etc/fstab |
27 | 27 | ||