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 --- .../installer/debian/usb/templates/syslinux.cfg.j2 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 roles/installer/debian/usb/templates/syslinux.cfg.j2 (limited to 'roles/installer/debian/usb/templates') diff --git a/roles/installer/debian/usb/templates/syslinux.cfg.j2 b/roles/installer/debian/usb/templates/syslinux.cfg.j2 new file mode 100644 index 00000000..c91f7287 --- /dev/null +++ b/roles/installer/debian/usb/templates/syslinux.cfg.j2 @@ -0,0 +1,22 @@ +SAY ***************************************** +SAY ** +{% if (ansible_play_hosts_all | length) == 1 %} +DEFAULT {{ install_hostname }} +SAY ** will be booting automated installer for {{ install_hostname }} in 10s ... +TIMEOUT 100 +{% else %} +SAY ** Please select host to install: +SAY ** +{% for host in ansible_play_hosts_all %} +SAY ** -> {{ host }} +{% endfor %} +{% endif %} +SAY ** +PROMPT 1 +{% for host in ansible_play_hosts_all %} + +LABEL {{ host }} + KERNEL {{ syslinux_base_path }}linux + INITRD {{ syslinux_base_path }}initrd.{{ host }}.gz + APPEND install {{ (hostvars[host].install_cooked.kernel_cmdline | default([])) | join(' ') }} +{% endfor %} -- cgit v1.2.3