summaryrefslogtreecommitdiff
path: root/roles/installer
diff options
context:
space:
mode:
Diffstat (limited to 'roles/installer')
-rw-r--r--roles/installer/openbsd/autoinstall/templates/install.site.j25
1 files changed, 2 insertions, 3 deletions
diff --git a/roles/installer/openbsd/autoinstall/templates/install.site.j2 b/roles/installer/openbsd/autoinstall/templates/install.site.j2
index f4f9524d..d12ed461 100644
--- a/roles/installer/openbsd/autoinstall/templates/install.site.j2
+++ b/roles/installer/openbsd/autoinstall/templates/install.site.j2
@@ -1,8 +1,7 @@
#!/bin/sh
-## TODO: enable this once we know how this works
-## echo "Generating random root pasword"
-## openssl rand -base64 24 | passwd root
+echo "Generating random root pasword"
+usermod -p "$(openssl rand -base64 24 | encrypt)" root
echo "Installing SSH keys for root"
cat <<EOF > /root/.ssh/authorized_keys