Add an inspector rule to store the PXE interface MAC address
This is useful for configuring the IP address on the correct interface when the node first boots.
This commit is contained in:
parent
bd5b65d342
commit
27a286c9bb
@ -72,6 +72,7 @@ kolla_bifrost_inspector_rules:
|
||||
- "{{ inspector_rule_local_boot }}"
|
||||
- "{{ inspector_rule_root_hint_init }}"
|
||||
- "{{ inspector_rule_root_hint_serial }}"
|
||||
- "{{ inspector_rule_set_pxe_interface_mac }}"
|
||||
- "{{ inspector_rule_eno3_lldp_switch_port_desc_to_name }}"
|
||||
|
||||
# Ironic inspector IPMI username to set.
|
||||
|
@ -97,6 +97,18 @@ inspector_rule_root_hint_serial:
|
||||
path: "properties/root_device/serial"
|
||||
value: "{data[root_disk][serial]}"
|
||||
|
||||
# Ironic inspector rule to set the interface on which the node PXE booted.
|
||||
inspector_rule_set_pxe_interface_mac:
|
||||
description: "Set node PXE interface MAC address"
|
||||
conditions:
|
||||
- field: "data://boot_interface"
|
||||
op: "is-empty"
|
||||
invert: True
|
||||
actions:
|
||||
- action: "set-attribute"
|
||||
path: "extra/pxe_interface_mac"
|
||||
value: "{data[boot_interface]}"
|
||||
|
||||
# Ironic inspector rule to set the node's name from eno3's LLDP switch port
|
||||
# description.
|
||||
inspector_rule_eno3_lldp_switch_port_desc_to_name:
|
||||
|
Loading…
x
Reference in New Issue
Block a user