diff --git a/playbooks/roles/bifrost-ironic-install/README.md b/playbooks/roles/bifrost-ironic-install/README.md index d93ca950a..a1dd0011c 100644 --- a/playbooks/roles/bifrost-ironic-install/README.md +++ b/playbooks/roles/bifrost-ironic-install/README.md @@ -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 diff --git a/playbooks/roles/bifrost-ironic-install/defaults/main.yml b/playbooks/roles/bifrost-ironic-install/defaults/main.yml index e5b41f847..2d98786dd 100644 --- a/playbooks/roles/bifrost-ironic-install/defaults/main.yml +++ b/playbooks/roles/bifrost-ironic-install/defaults/main.yml @@ -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: diff --git a/playbooks/roles/bifrost-ironic-install/templates/ironic-inspector.conf.j2 b/playbooks/roles/bifrost-ironic-install/templates/ironic-inspector.conf.j2 index 66387a923..ff29da240 100644 --- a/playbooks/roles/bifrost-ironic-install/templates/ironic-inspector.conf.j2 +++ b/playbooks/roles/bifrost-ironic-install/templates/ironic-inspector.conf.j2 @@ -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 diff --git a/releasenotes/notes/inspector-processing-hooks-addf80be5f31aa61.yaml b/releasenotes/notes/inspector-processing-hooks-addf80be5f31aa61.yaml new file mode 100644 index 000000000..dd2e731fa --- /dev/null +++ b/releasenotes/notes/inspector-processing-hooks-addf80be5f31aa61.yaml @@ -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.