summaryrefslogtreecommitdiff
path: root/roles/installer/debian/usb/templates/syslinux.cfg.j2
blob: c91f72876bb2e525d42eca2793178d5fbf267831 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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 %}