aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xroles/space_server/bootstrap.sh10
-rw-r--r--roles/space_server/files/radius/freeradius-assha-3.0.15-3.fc27.x86_64.rpmbin0 -> 1140764 bytes
2 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 -- \
diff --git a/roles/space_server/files/radius/freeradius-assha-3.0.15-3.fc27.x86_64.rpm b/roles/space_server/files/radius/freeradius-assha-3.0.15-3.fc27.x86_64.rpm
new file mode 100644
index 0000000..d69ef22
--- /dev/null
+++ b/roles/space_server/files/radius/freeradius-assha-3.0.15-3.fc27.x86_64.rpm
Binary files differ