aboutsummaryrefslogtreecommitdiffstats
path: root/roles/space_server/bootstrap.sh
diff options
context:
space:
mode:
authorEmil Renner Berthing <esmil@labitat.dk>2017-11-20 20:33:32 +0100
committerEmil Renner Berthing <esmil@labitat.dk>2017-11-20 20:33:32 +0100
commit7313d17088aef2afea3448e81ef6a68b9d45dcab (patch)
tree76bf0d2437d74d058b9c6791b93ae1753523e1d5 /roles/space_server/bootstrap.sh
parent3387c2fdcbe74be6767c5abce5beb9e7df2d3f5b (diff)
downloadlabitat-ansible-7313d17088aef2afea3448e81ef6a68b9d45dcab.tar.gz
labitat-ansible-7313d17088aef2afea3448e81ef6a68b9d45dcab.tar.xz
labitat-ansible-7313d17088aef2afea3448e81ef6a68b9d45dcab.zip
space_server: update to Fedora 27
Diffstat (limited to 'roles/space_server/bootstrap.sh')
-rwxr-xr-xroles/space_server/bootstrap.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/roles/space_server/bootstrap.sh b/roles/space_server/bootstrap.sh
index 8fbc399..f80a454 100755
--- a/roles/space_server/bootstrap.sh
+++ b/roles/space_server/bootstrap.sh
@@ -39,7 +39,8 @@
set -e
set -x
-release=26
+release=27
+secrets='/etc/ansible/secrets.yml'
dest="/mnt/fedora$release"
if [[ -e "$dest" ]]; then
echo "Destination '$dest' already exists. Aborting." >&2
@@ -51,11 +52,16 @@ btrfs subvolume create "$dest"
dnf \
--assumeyes \
--installroot="$dest" \
+ --setopt=install_weak_deps=False \
--releasever=$release \
--disablerepo='*' \
--enablerepo=fedora \
--enablerepo=updates \
- install dnf python2-dnf python-netaddr ansible
+ install dnf git python2-dnf python-netaddr ansible
+
+if [[ -f "$secrets" ]]; then
+ install -m660 "$secrets" "$dest$secrets"
+fi
systemd-nspawn -D "$dest" -M space -E ANSIBLE_FORCE_COLOR=1 \
--bind /boot --bind /home -- \