b974a6c0e0
The deploy image is required in two places in an ironic deployment, first as images uploaded to glance for the ironic service, and second as files on a web server for the ironic-inspector service. Previously this role only placed the deploy images on the ironic inspector web server, but this patch provides the functionality to also upload the images to glance. The variables for ironic deploy image source locations are consolidated so that only one set are required to run the tasks for both ironic and ironic-inspector, and several overrides are available allowing the source to be overidden to a local mirror easily. Finally - the name of the files placed on the inspector web server and into glance represent the upstream name of the image files rather than generic names which lose versioning and release information. Change-Id: I1aed9d97a4ddbfb70d2375f5204c55374d1067c9
11 lines
443 B
Django/Jinja
11 lines
443 B
Django/Jinja
#!ipxe
|
|
|
|
:retry_dhcp
|
|
dhcp || goto retry_dhcp
|
|
|
|
:retry_boot
|
|
imgfree
|
|
kernel --timeout 30000 {{ ironic_http_url }}/{{ ironic_deploy_image_kernel_name }} ipa-inspection-callback-url={{ ironic_inspector_callback_url }} systemd.journald.forward_to_console=yes BOOTIF=${mac} initrd={{ ironic_deploy_image_initramfs_name }} || goto retry_boot
|
|
initrd --timeout 30000 {{ ironic_http_url }}/{{ ironic_deploy_image_initramfs_name }} || goto retry_boot
|
|
boot
|