From c7006b00fb5664423daeee3b83aa347cf959701b Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 26 Dec 2019 21:50:16 +0100 Subject: zsh and sshd role support debian and openbsd now --- roles/installer/openbsd/autoinstall/templates/install.site.j2 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'roles/installer/openbsd/autoinstall/templates') 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 < /root/.ssh/authorized_keys -- cgit v1.2.3