Skip to content

Commit

Permalink
edit pxe config when multiple nics
Browse files Browse the repository at this point in the history
  • Loading branch information
kubealex committed Aug 21, 2023
1 parent 3ab4dc5 commit 09bae1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/pxeboot_mac.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ DEFAULT {{ hostvars[item].node_role }}
SAY Now booting the kernel from SYSLINUX...
LABEL {{ hostvars[item].node_role }}
KERNEL {{ tftp_workspace_dir }}/{{ hostvars['bastion'].rhcos_kernel }}
APPEND initrd=rhcos/{{ hostvars['bastion'].rhcos_initramfs }} coreos.live.rootfs_url=http://{{ hostvars['bastion'].host_ip }}/{{ nginx_workspace_dir }}/{{ hostvars['bastion'].rhcos_os }} coreos.inst.install_dev=/dev/vda coreos.inst.ignition_url=http://{{ hostvars['bastion'].host_ip }}/{{ nginx_workspace_dir }}/{{ hostvars[item].node_role }}.ign
APPEND initrd=rhcos/{{ hostvars['bastion'].rhcos_initramfs }} coreos.live.rootfs_url=http://{{ hostvars['bastion'].host_ip }}/{{ nginx_workspace_dir }}/{{ hostvars['bastion'].rhcos_os }} coreos.inst.install_dev=/dev/vda coreos.inst.ignition_url=http://{{ hostvars['bastion'].host_ip }}/{{ nginx_workspace_dir }}/{{ hostvars[item].node_role }}.ign {% if cluster.additional_nic.enabled %} ip=ens3:dhcp ip=ens4:none {% endif %}

0 comments on commit 09bae1c

Please sign in to comment.