From 18cfada22a9acd031d3b77ba6132d700b611eedb Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 11 Jul 2020 04:21:12 +0200 Subject: usb installer: add multi-host boot stick support --- roles/installer/openbsd/autoinstall/templates/auto_install.conf.j2 | 2 +- roles/installer/openbsd/autoinstall/templates/install.site.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'roles/installer/openbsd') diff --git a/roles/installer/openbsd/autoinstall/templates/auto_install.conf.j2 b/roles/installer/openbsd/autoinstall/templates/auto_install.conf.j2 index 767242d9..6c23d753 100644 --- a/roles/installer/openbsd/autoinstall/templates/auto_install.conf.j2 +++ b/roles/installer/openbsd/autoinstall/templates/auto_install.conf.j2 @@ -17,7 +17,7 @@ Which speed should {{ obsd_autoinstall_serial_device }} use = {{ obsd_autoinstal {% endif %} {# we will install only one key for now, install.site will install the rest #} -Public ssh key for root account = {{ ssh_keys_root[0] }} +Public ssh key for root account = {{ hostvars[install_hostname].ssh_keys_root[0] }} Password for root = this-very-very-secure-password-will-be-overwritten-by-install.site Setup a user = no Start sshd(8) by default = yes diff --git a/roles/installer/openbsd/autoinstall/templates/install.site.j2 b/roles/installer/openbsd/autoinstall/templates/install.site.j2 index 974b516a..32b33ea9 100644 --- a/roles/installer/openbsd/autoinstall/templates/install.site.j2 +++ b/roles/installer/openbsd/autoinstall/templates/install.site.j2 @@ -5,7 +5,7 @@ usermod -p "$(openssl rand -base64 24 | encrypt)" root echo "Installing SSH keys for root" cat < /root/.ssh/authorized_keys -{{ ssh_keys_root | join('\n') }} +{{ hostvars[install_hostname].ssh_keys_root | join('\n') }} EOF {% if hostvars[install_hostname].ansible_port is defined %} -- cgit v1.2.3