summaryrefslogtreecommitdiff
path: root/roles/installer/openbsd/autoinstall/templates
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2019-12-26 21:50:16 +0100
committerChristian Pointner <equinox@spreadspace.org>2019-12-26 21:50:16 +0100
commitc7006b00fb5664423daeee3b83aa347cf959701b (patch)
tree1da323d2777246ff0e01370641f2b2f48dca914e /roles/installer/openbsd/autoinstall/templates
parentmake vm install work for both debian/ubuntu and openbsd (diff)
zsh and sshd role support debian and openbsd now
Diffstat (limited to 'roles/installer/openbsd/autoinstall/templates')
-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