From 104a5643b8af53a46b683574007b78b9686c80fe Mon Sep 17 00:00:00 2001 From: Pavlo Shchelokovskyy Date: Thu, 30 Mar 2017 15:44:43 +0000 Subject: [PATCH] Make ipxe boot script templatable This patch allows the custom iPXE boot script that bifrost supplies to use the templating feature provided by ironic since Ocata release. In the long run this will also be needed to support the Dynamic iPXE Configuration feature. Change-Id: I21f7f8433277349ad01323ead6ecd277a0b61e3b --- playbooks/roles/bifrost-ironic-install/files/boot.ipxe | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playbooks/roles/bifrost-ironic-install/files/boot.ipxe b/playbooks/roles/bifrost-ironic-install/files/boot.ipxe index 9bfdd1847..d60c555e3 100644 --- a/playbooks/roles/bifrost-ironic-install/files/boot.ipxe +++ b/playbooks/roles/bifrost-ironic-install/files/boot.ipxe @@ -5,10 +5,10 @@ chain ipxe.pxe # load the MAC-specific file or fail if it's not found :boot_system -chain pxelinux.cfg/${mac:hexhyp} || goto inspector_ipa +chain {{ ipxe_for_mac_uri }}${mac:hexhyp} || goto inspector_ipa :inspector_ipa -chain pxelinux.cfg/default || goto error_no_config +chain {{ ipxe_for_mac_uri }}default || goto error_no_config :error_no_config echo PXE boot failed. No configuration found for MAC ${mac}