22 lines
941 B
Plaintext
22 lines
941 B
Plaintext
{% set httpUrl = "http://192.168.1.1:8000" -%}
|
|
#!ipxe
|
|
dhcp
|
|
|
|
echo Starting ${serial}
|
|
|
|
:start
|
|
goto node_${serial} || exit
|
|
# Default behavior (non install mode) is to exit iPXE script
|
|
|
|
{% for node in nodes %}
|
|
{%- if node.install.serial -%}
|
|
# {{ cluster.name }}/{{ node.hostname }}
|
|
:node_{{ node.install.serial }}
|
|
{% set ipArg = "ip=" ~ [node.network.ip, "" , node.network.gateway, node.network.netmask, node.hostname, node.network.interface, "", node.network.dns[0], node.network.dns[1], node.ntp]|join(":") -%}
|
|
imgfree
|
|
kernel https://pxe.factory.talos.dev/image/{{ node.schematic }}/v{{ cluster.version.talos }}/kernel-{{ node.arch }} {{ ipArg }} {{ node.kernelArgs|join(" ") }} {% if node.install.auto %}talos.config={{httpUrl}}/configs/{{cluster.name}}/{{node.hostname}}.yaml{% endif +%}
|
|
initrd https://pxe.factory.talos.dev/image/{{ node.schematic }}/v{{ cluster.version.talos }}/initramfs-{{ node.arch }}.xz
|
|
boot
|
|
{% endif %}
|
|
{% endfor %}
|