Merge "Copy shim and grub into tftp and http directories"
This commit is contained in:
commit
58f897c8bd
@ -100,7 +100,7 @@
|
|||||||
mode: 0644
|
mode: 0644
|
||||||
remote_src: true
|
remote_src: true
|
||||||
|
|
||||||
- name: "Copy full iPXE image into /tftpboot"
|
- name: "Copy full iPXE image into {{ tftp_boot_folder }}"
|
||||||
copy:
|
copy:
|
||||||
src: "{{ ipxe_dir }}/{{ ipxe_full_binary }}"
|
src: "{{ ipxe_dir }}/{{ ipxe_full_binary }}"
|
||||||
dest: "{{ tftp_boot_folder }}"
|
dest: "{{ tftp_boot_folder }}"
|
||||||
@ -109,6 +109,35 @@
|
|||||||
mode: 0644
|
mode: 0644
|
||||||
remote_src: true
|
remote_src: true
|
||||||
|
|
||||||
|
- name: "Set grub2 and shim paths for Debian and Red Hat systems"
|
||||||
|
set_fact:
|
||||||
|
grub_efi_source: /usr/lib/ironic/grub-efi
|
||||||
|
shim_efi_source: /usr/lib/ironic/shim-efi
|
||||||
|
|
||||||
|
- name: "Copy shim into serving folders"
|
||||||
|
copy:
|
||||||
|
src: "{{ shim_efi_source }}"
|
||||||
|
dest: "{{ item }}/bootx64.efi"
|
||||||
|
owner: ironic
|
||||||
|
group: ironic
|
||||||
|
mode: 0644
|
||||||
|
remote_src: true
|
||||||
|
loop:
|
||||||
|
- "{{ tftp_boot_folder }}"
|
||||||
|
- "{{ http_boot_folder }}"
|
||||||
|
|
||||||
|
- name: "Copy grub into serving folders"
|
||||||
|
copy:
|
||||||
|
src: "{{ grub_efi_source }}"
|
||||||
|
dest: "{{ item }}/grubx64.efi"
|
||||||
|
owner: ironic
|
||||||
|
group: ironic
|
||||||
|
mode: 0644
|
||||||
|
remote_src: true
|
||||||
|
loop:
|
||||||
|
- "{{ tftp_boot_folder }}"
|
||||||
|
- "{{ http_boot_folder }}"
|
||||||
|
|
||||||
- name: "Set up iPXE for EFI booting"
|
- name: "Set up iPXE for EFI booting"
|
||||||
block:
|
block:
|
||||||
- name: "Check if the iPXE EFI image is present"
|
- name: "Check if the iPXE EFI image is present"
|
||||||
|
@ -83,7 +83,7 @@ sudo journalctl -u uwsgi@keystone-public &> ${LOG_LOCATION}/keystone-public.log
|
|||||||
# Copy PXE information
|
# Copy PXE information
|
||||||
mkdir -p ${LOG_LOCATION}/pxe/
|
mkdir -p ${LOG_LOCATION}/pxe/
|
||||||
sudo ls -lR /var/lib/ironic/httpboot > ${LOG_LOCATION}/pxe/listing.txt
|
sudo ls -lR /var/lib/ironic/httpboot > ${LOG_LOCATION}/pxe/listing.txt
|
||||||
sudo bash -c "cp -aL /var/lib/ironic/httpboot/*.ipxe ${LOG_LOCATION}/pxe/"
|
sudo bash -c "cp -aL /var/lib/ironic/httpboot/*.ipxe ${LOG_LOCATION}/pxe/ || true"
|
||||||
sudo cp -aL /var/lib/ironic/httpboot/pxelinux.cfg/ ${LOG_LOCATION}/pxe/
|
sudo cp -aL /var/lib/ironic/httpboot/pxelinux.cfg/ ${LOG_LOCATION}/pxe/
|
||||||
|
|
||||||
# Copy files generated by bifrost-cli
|
# Copy files generated by bifrost-cli
|
||||||
|
Loading…
Reference in New Issue
Block a user