7da7127071
This commit enables and configures the Ironic Inspector. This feature allows for baremetal nodes to be introspected. This provides useful information about an Ironic host. Such information includes harware and mac addresses. Depends-On: https://review.opendev.org/680553 Change-Id: I2ee09d9cc20f9b8e4430c55129cd8bac9435299d
34 lines
1.1 KiB
Django/Jinja
34 lines
1.1 KiB
Django/Jinja
|
|
ddns-update-style interim;
|
|
|
|
allow booting;
|
|
allow bootp;
|
|
|
|
ignore client-updates;
|
|
set vendorclass = option vendor-class-identifier;
|
|
option pxe-system-type code 93 = unsigned integer 16;
|
|
set pxetype = option pxe-system-type;
|
|
|
|
|
|
subnet {{ ironic_inspector_dhcp_subnet }} netmask {{ ironic_inspector_dhcp_subnet_mask }} {
|
|
option routers {{ ironic_inspector_dhcp_gateway }};
|
|
option domain-name-servers {{ ironic_inspector_dhcp_nameservers}};
|
|
option subnet-mask {{ ironic_inspector_dhcp_subnet_mask }};
|
|
range dynamic-bootp {{ ironic_inspector_dhcp_pool_range }};
|
|
default-lease-time {{ ironic_inspector_dhcp_lease_time }};
|
|
max-lease-time 43200;
|
|
next-server {{ ironic_inspector_dhcp_interface }};
|
|
class "pxeclients" {
|
|
match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";
|
|
if pxetype=6 or pxetype=7 {
|
|
filename "syslinux.efi";
|
|
} else {
|
|
{% if ironic_inspector_boot_mode == "http" %}
|
|
filename "lpxelinux.0";
|
|
{% else %}
|
|
filename "pxelinux.0";
|
|
{% endif %}
|
|
}
|
|
}
|
|
}
|