Tidy definition of http dir for inspector

The directory for the tftp server defined consistently between ironic
and inspector, but not for the http directory.

This patch makes the definition of the http directory work the same
way as the tftp one.

Change-Id: I8d893faa31e5858c4923cb12ef453ec9397db5df
This commit is contained in:
Jonathan Rosser 2022-11-30 10:39:12 +00:00 committed by Dmitriy Rabotyagov
parent b974a6c0e0
commit ba1d9e9d4b
3 changed files with 3 additions and 3 deletions

View File

@ -420,7 +420,7 @@ ironic_inspector_dhcp_lease_time: 600
ironic_inspector_dhcp_type: dnsmasq # isc_dhcp
ironic_inspector_boot_mode: http #tftp
ironic_inspector_pxe_boot_mode: "{{ ironic_inspector_boot_mode }}"
ironic_inspector_httpboot_dir: /httpboot
ironic_inspector_httpboot_dir: "{{ ironic_http_root }}"
ironic_inspector_tftpboot_dir: "{{ ironic_tftpd_root }}"
ironic_inspector_dhcp_interface: "{{ ironic_bmaas_interface }}"

View File

@ -28,7 +28,7 @@
- name: Download IPA Images
get_url:
url: "{{ item.url }}"
dest: "/httpboot/{{ item.name }}"
dest: "{{ ironic_inspector_httpboot_dir }}/{{ item.name }}"
checksum: "sha256:{{ item.sha_url }}"
owner: "{{ ironic_system_user_name }}"
group: "{{ ironic_system_group_name }}"

View File

@ -10,7 +10,7 @@ server {
# directory to store ipxe
location / {
root /httpboot;
root {{ ironic_http_root }};
autoindex off;
expires 1h;
}