diff --git a/playbooks/roles/bifrost-ironic-install/files/boot.ipxe b/playbooks/roles/bifrost-ironic-install/files/boot.ipxe deleted file mode 100644 index d60c555e3..000000000 --- a/playbooks/roles/bifrost-ironic-install/files/boot.ipxe +++ /dev/null @@ -1,17 +0,0 @@ -#!ipxe - -isset ${mac:hexhyp} && goto boot_system || -chain ipxe.pxe - -# load the MAC-specific file or fail if it's not found -:boot_system -chain {{ ipxe_for_mac_uri }}${mac:hexhyp} || goto inspector_ipa - -:inspector_ipa -chain {{ ipxe_for_mac_uri }}default || goto error_no_config - -:error_no_config -echo PXE boot failed. No configuration found for MAC ${mac} -echo Press any key to reboot... -prompt --timeout 180 || reboot -reboot diff --git a/playbooks/roles/bifrost-ironic-install/tasks/create_tftpboot.yml b/playbooks/roles/bifrost-ironic-install/tasks/create_tftpboot.yml index 3a097250a..0027342f7 100644 --- a/playbooks/roles/bifrost-ironic-install/tasks/create_tftpboot.yml +++ b/playbooks/roles/bifrost-ironic-install/tasks/create_tftpboot.yml @@ -27,8 +27,11 @@ service: name="{{ tftp_service_name }}" state=stopped enabled=no ignore_errors: yes -- name: "Place boot.ipxe helper script /etc/ironic" - copy: src=boot.ipxe dest=/etc/ironic/boot.ipxe owner=ironic group=ironic mode=0744 +# NOTE(dtantsur): the code to remove boot.ipxe can be removed after Yoga +- name: Remove the stale boot.ipxe + file: + path: /etc/ironic/boot.ipxe + state: absent # NOTE(dtantsur): the code to migrate from xinetd can be removed after Xena diff --git a/playbooks/roles/bifrost-ironic-install/templates/ironic.conf.j2 b/playbooks/roles/bifrost-ironic-install/templates/ironic.conf.j2 index 0f4f638ae..91f54f4d4 100644 --- a/playbooks/roles/bifrost-ironic-install/templates/ironic.conf.j2 +++ b/playbooks/roles/bifrost-ironic-install/templates/ironic.conf.j2 @@ -67,7 +67,7 @@ deploy_logs_local_path = {{ ironic_agent_deploy_logs_local_path }} kernel_append_params = {{ pxe_kernel_params }} tftp_server = {{ internal_ip }} tftp_root = /tftpboot -ipxe_boot_script = /etc/ironic/boot.ipxe +ipxe_fallback_script = pxelinux.cfg/default tftp_master_path = {{ ironic_tftp_master_path }} {% if enable_uefi_ipxe | bool %} uefi_ipxe_bootfile_name = {{ ipxe_efi_binary }} diff --git a/releasenotes/notes/ipxe-fallback-245535c4fb9ddc0b.yaml b/releasenotes/notes/ipxe-fallback-245535c4fb9ddc0b.yaml new file mode 100644 index 000000000..3a474def2 --- /dev/null +++ b/releasenotes/notes/ipxe-fallback-245535c4fb9ddc0b.yaml @@ -0,0 +1,5 @@ +--- +other: + - | + No longer installs ``/etc/ironic/boot.ipxe``, relying on the boot script + generated by Ironic instead.