Enable inspector discovery by default

In order to make lives easier, this change enables the
ironic inspector to register newly discovered nodes
that boot on the PXE network.

Change-Id: I2b4a20ecb51391c586304c0c27f660f759b349e7
This commit is contained in:
Julia Kreger 2016-10-14 17:03:01 +00:00 committed by Stephanie Miller
parent aa6c5cc4c0
commit 2786b42151
4 changed files with 29 additions and 8 deletions

View File

@ -193,6 +193,17 @@ inspector_store_ramdisk_logs: Boolean value, default true. Controls if the
inspector agent will retain logs from the
ramdisk that called the inspector service.
enable_inspector_discovery: Boolean value, default true. This instructs
inspector to add new nodes that are discovered
via PXE booting on the same network to ironic.
inspector_default_node_driver: The default driver to utilize when adding
discovered nodes to ironic.
The default value set by bifrost is
`agent_ipmitool`. Users should change this
setting for their install environment if
an alternative default driver is required.
### Virtual Environment Install
Bifrost can install ironic into a python virtual environment using the

View File

@ -126,6 +126,12 @@ inspector_port_addition: "pxe"
# Note: inspector_keep_ports has three valid values: all, present, added
inspector_keep_ports: "present"
# Inspector defaults
inspector:
discovery:
enabled: "{{ enable_inspector_discovery | default(true) }}"
default_node_driver: "{{ inspector_default_node_driver | default('agent_ipmitool')}}"
# We may not have packaged iPXE files on some distros, or may want to
# download them on their own.
download_ipxe: false

View File

@ -27,11 +27,9 @@ add_ports = {{ inspector_port_addition | default('pxe') }}
keep_ports = {{ inspector_keep_ports | default('present') }}
ramdisk_logs_dir = {{ inspector_data_dir }}/log
always_store_ramdisk_logs = {{ inspector_store_ramdisk_logs | default('true') | bool }}
{#
# Note(TheJulia): Preserving node_not_found_hook for potential future
# use by bifrost.
# The name of the hook to run when inspector receives inspection
# information from a node it isn't already aware of. This hook is
# ignored by default. (string value)
#node_not_found_hook = <None>
#}
{% if inspector.discovery.enabled == true %}
node_not_found_hook = enroll
[discovery]
enroll_node_driver = {{ inspector.discovery.enroll_node_driver | default('fake') }}
{% endif %}

View File

@ -0,0 +1,6 @@
---
features:
- Discovery of nodes via the ironic-inspector is now
enabled by default. If you wish to disable this, set
``enable_inspector_discovery`` to ``false`` and re-execute
the installation playbook.