15fa11e2af
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
72 lines
2.4 KiB
Django/Jinja
72 lines
2.4 KiB
Django/Jinja
{#
|
|
# Note(TheJulia): This file is based upon the file format provided by the git
|
|
# committed example located at:
|
|
# http://git.openstack.org/cgit/openstack/ironic-inspector/tree/example.conf
|
|
#}
|
|
[DEFAULT]
|
|
{% if enable_keystone is defined and enable_keystone | bool == true %}
|
|
auth_strategy = keystone
|
|
{% else %}
|
|
auth_strategy = {{ inspector_auth | default('noauth') }}
|
|
{% endif %}
|
|
debug = {{ inspector_debug | bool }}
|
|
|
|
{% if inspector_log_dir is defined %}
|
|
log_dir = {{ inspector_log_dir }}
|
|
{% endif %}
|
|
|
|
[database]
|
|
connection=mysql+pymysql://{{ ironic_inspector.database.username }}:{{ ironic_inspector.database.password }}@{{ ironic_inspector.database.host }}/{{ ironic_inspector.database.name }}?charset=utf8
|
|
|
|
[firewall]
|
|
manage_firewall = {{ inspector_manage_firewall | bool | default('false') }}
|
|
|
|
[ironic]
|
|
{% if enable_keystone is defined and enable_keystone | bool == true %}
|
|
os_region = {{ keystone.bootstrap.region_name | default('RegionOne') }}
|
|
project_name = baremetal
|
|
username = {{ ironic_inspector.keystone.default_username }}
|
|
password = {{ ironic_inspector.keystone.default_password }}
|
|
auth_url = {{ ironic_inspector.service_catalog.auth_url }}
|
|
auth_type = password
|
|
auth_strategy = keystone
|
|
user_domain_id = default
|
|
project_domain_id = default
|
|
|
|
{% else %}
|
|
auth_strategy = {{ ironic_auth_strategy | default('noauth') }}
|
|
{% endif %}
|
|
|
|
{% if enable_keystone is defined and enable_keystone | bool == true %}
|
|
[keystone_authtoken]
|
|
auth_plugin = password
|
|
auth_url = {{ ironic_inspector.service_catalog.auth_url }}
|
|
username = {{ ironic_inspector.service_catalog.username }}
|
|
password = {{ ironic_inspector.service_catalog.password }}
|
|
user_domain_id = default
|
|
project_name = service
|
|
project_domain_id = default
|
|
|
|
{% endif %}
|
|
{#
|
|
# Note(TheJulia) preserving ironic_url in the configuration
|
|
# in case future changes allow breaking of the deployment across
|
|
# multiple nodes.
|
|
#ironic_url = http://localhost:6385/
|
|
#}
|
|
|
|
[processing]
|
|
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
|
|
|
|
[discovery]
|
|
enroll_node_driver = {{ inspector.discovery.default_node_driver }}
|
|
{% endif %}
|