Variablize the full iPXE binary

The full ipxe binary has a different name on RedHat based
based distributions, so we need to variablize the parameter
and load the correct variable accordingly.

Change-Id: Icc6f3229ed54544794b57fe26d5293724e392647
This commit is contained in:
Julia Kreger 2015-07-07 13:27:32 -04:00
parent 32121c073e
commit 935c35e4cd
3 changed files with 4 additions and 2 deletions

View File

@ -4,6 +4,7 @@ init_dest_dir: /etc/init/
init_ext: .conf
syslinux_tftp_dir: /usr/lib/syslinux/
ipxe_dir: /usr/lib/ipxe/
ipxe_full_binary: ipxe.pxe
sgabios_dir: /usr/share/qemu/
nginx_user: www-data
virt_group: libvirtd

View File

@ -4,6 +4,7 @@ init_dest_dir: /usr/lib/systemd/system/
init_ext: .service
syslinux_tftp_dir: /var/lib/tftpboot
ipxe_dir: /usr/share/ipxe/
ipxe_full_binary: ipxe.lkrn
sgabios_dir: /usr/share/sgabios/
nginx_user: nginx
virt_group: libvirt

View File

@ -39,9 +39,9 @@
copy: src={{ ipxe_dir }}/undionly.kpxe dest=/tftpboot/
# NOTE(TheJulia): Copy full iPXE chain loader images in case they are required.
- name: "Copy full iPXE image into /httpboot"
copy: src={{ ipxe_dir }}/ipxe.pxe dest=/httpboot/
copy: src={{ ipxe_dir }}/{{ ipxe_full_binary }} dest=/httpboot/
- name: "Copy full iPXE image into /tftpboot"
copy: src={{ ipxe_dir }}/ipxe.pxe dest=/tftpboot/
copy: src={{ ipxe_dir }}/{{ ipxe_full_binary }} dest=/tftpboot/
# Similar logic to below can be utilized to retrieve files
- name: "Determine if folder exists, else create and populate folder."
stat: path=/tftpboot/master_images