f00c6bf215
Adds support for iPXE scripting. Allows for the operator to specify a remote iPXE kernel to pull in newer iPXE kernel features and specify a remote default iPXE script for customizing the multi node for other types of deployments. Switches the installations to use netboot installer kernels instead of ISO retrival and extraction. Restructures directory to allow for future multi node configs instead of just debian based installs. Change-Id: Ie97f021dbd33ad3d852132b0b2850f54d4e13476
11 lines
732 B
Django/Jinja
11 lines
732 B
Django/Jinja
{% set server_vars = hostvars[item] %}
|
|
{% set image_properties = images[server_vars['server_image']] %}
|
|
#!ipxe
|
|
|
|
kernel {{ image_properties['image_netboot_kernel_url'] }}
|
|
initrd {{ image_properties['image_netboot_initrd_url'] }}
|
|
{% if image_properties['image_type'] == 'debian' %}
|
|
imgargs linux hostname={{ server_vars['server_hostname'] }} {{ image_properties['image_kernel_options'] }} preseed/url={{ image_properties['image_configs'][server_vars['server_preseed_ks']]['url'] }} preseed/interactive=false netcfg/choose_interface={{ server_vars['server_default_interface'] }} netcfg/get_domain={{ server_vars['server_domain_name'] }} initrd=initrd.gz {{ server_vars['server_extra_options'] | default('') }}
|
|
{% endif %}
|
|
boot
|