summaryrefslogtreecommitdiff
path: root/roles/installer/debian/usb/templates/syslinux.cfg.j2
blob: badb7e81b544f0fe0cfd169a58fbf7c5690f13bf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{% if (ansible_play_hosts_all | length) == 1 %}
DEFAULT {{ inventory_hostname }}
TIMEOUT 100
PROMPT 1
SAY *****************************************
SAY **
SAY **  Distro:   {{ install_distro }}
SAY **  Codename: {{ install_codename }}
SAY **
SAY **  will be booting automated installer for {{ inventory_hostname }} in 10s ...
SAY **
{% else %}
DEFAULT menu.c32
TIMEOUT 0
PROMPT 0
MENU TITLE {{ install_distro }} / {{ install_codename }}
{% endif %}
{% for host in ansible_play_hosts_all %}

LABEL {{ host }}
  MENU LABEL automated installer for {{ host }}
  KERNEL linux
  INITRD initrd.{{ host }}.gz
  APPEND auto fb=false {{ (hostvars[host].install_cooked.kernel_cmdline | default([])) | join(' ') }}
{% endfor %}