diff options
author | Christian Pointner <equinox@spreadspace.org> | 2019-12-26 21:50:16 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2019-12-26 21:50:16 +0100 |
commit | c7006b00fb5664423daeee3b83aa347cf959701b (patch) | |
tree | 1da323d2777246ff0e01370641f2b2f48dca914e /roles/installer/openbsd | |
parent | make 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')
-rw-r--r-- | roles/installer/openbsd/autoinstall/templates/install.site.j2 | 5 |
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 |