tlu/salt/states/pxe/harvester/files/harvester.cfg.jinja

20 lines
1.3 KiB
Plaintext
Raw Normal View History

2021-10-16 13:09:54 +00:00
## Menu Colours
set menu_color_normal=white/black
set menu_color_highlight=white/green
2021-10-18 13:00:39 +00:00
{% for node in ['node1', 'node2', 'node3'] -%}
menuentry 'TLU Harvester {{ pillar['harvester']['version'] }} {{ node }}' --class os {
linux harvester-v{{ pillar['harvester']['version'] }}-vmlinuz-amd64 nomodeset initrd=harvester-v{{ pillar['harvester']['version'] }}-initrd-amd64 ip=dhcp net.ifnames=1 rd.cos.disable rd.noverifyssl console=tty1 root=live:http://{{ pillar['network']['ip'] }}/harvester/harvester-v{{ pillar['harvester']['version'] }}-rootfs-amd64.squashfs harvester.install.automatic=true harvester.install.config_url=http://{{ pillar['network']['ip'] }}/harvester/{{ node }}.yaml
2021-10-18 09:24:06 +00:00
initrd harvester-v{{ pillar['harvester']['version'] }}-initrd-amd64
2021-10-17 10:35:16 +00:00
boot
}
2021-10-18 13:00:39 +00:00
{% endfor %}
2021-10-17 10:35:16 +00:00
2021-10-16 13:09:54 +00:00
{% for item in pillar['pxe']['harvester'] -%}
menuentry 'Harvester {{ item['version'] }}' --class os {
linux harvester-v{{ item['version'] }}-vmlinuz-amd64 nomodeset initrd=harvester-v{{ item['version'] }}-initrd-amd64 ip=dhcp net.ifnames=1 rd.cos.disable rd.noverifyssl console=tty1 root=live:http://{{ pillar['network']['ip'] }}/harvester/harvester-v{{ item['version'] }}-rootfs-amd64.squashfs iso_url=http://{{ pillar['network']['ip'] }}/harvester/harvester-v{{ item['version'] }}-amd64.iso
initrd harvester-v{{ item['version'] }}-initrd-amd64
boot
}
{% endfor %}