Support configuring inspector processing hooks

As an operator I want to be able to configure the introspection data
processing hooks enabled in ironic inspector so that I can customise the
inspection processing pipeline.

This change allows the set of processing hooks used by inspector to be
configured.

Change-Id: I8e9ec6c78acf5c2b5f8b012bf7d0c41662c5c00f
Closes-Bug: #1685877
This commit is contained in:
Mark Goddard 2017-04-25 09:26:37 +01:00
parent 9bf485b0ae
commit 15fa11e2af
4 changed files with 20 additions and 0 deletions

View File

@ -223,6 +223,11 @@ inspector_extra_kernel_options: String value, default undefined. Extra
kernel parameters for the inspector default
PXE configuration.
inspector_processing_hooks: String value containing a comma-separated list,
default undefined. Use this to specify a
non-default list of comma-separated processing
hooks for inspector.
### Virtual Environment Install
Bifrost can install ironic into a python virtual environment using the

View File

@ -154,6 +154,10 @@ inspector_keep_ports: "present"
# PXE configuration.
#inspector_extra_kernel_options:
# Set inspector_processing_hooks to specify a non-default comma-separated
# list of processing hooks for inspector.
#inspector_processing_hooks:
# Inspector defaults
inspector:
discovery:

View File

@ -60,6 +60,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 }}
{% if inspector_processing_hooks is defined %}
processing_hooks = {{ inspector_processing_hooks }}
{% endif %}
{% if inspector.discovery.enabled == true %}
node_not_found_hook = enroll

View File

@ -0,0 +1,8 @@
---
features:
- |
Allows configuration of inspector processing hooks.
It is now possible to configure the set of inspection data processing hooks
used by ironic inspector via the variable ``inspector_processing_hooks``,
which defaults to using inspector's default list.