tlu/salt/states/pxe/harvester/files/harvester.cfg.jinja
Jonas Forsberg d962e7bc74 .
2021-10-17 12:35:16 +02:00

20 lines
1.3 KiB
Django/Jinja

{% set cluster_version = 0.3.0 -%}
## Menu Colours
set menu_color_normal=white/black
set menu_color_highlight=white/green
menuentry 'TLU Harvester {{ cluster_version }} Server-1 --class os {
linux harvester-v{{ cluster_version }}-vmlinuz-amd64 nomodeset initrd=harvester-v{{ cluster_version }}-initrd-amd64 ip=dhcp net.ifnames=1 rd.cos.disable rd.noverifyssl console=tty1 root=live:http://{{ pillar['network']['ip'] }}/harvester/harvester-v{{ cluster_version }}-rootfs-amd64.squashfs iso_url=http://{{ pillar['network']['ip'] }}/harvester/harvester-v{{ cluster_version }}-amd64.iso harvester.install.automatic=true harvester.install.config_url=http://{{ pillar['network']['ip'] }}/harvester/tlu-cluster-create.yaml
initrd harvester-v{{ cluster_version }}-initrd-amd64
boot
}
{% 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 %}