kayobe/ansible/roles/kolla-openstack/templates/ironic-inspector.conf.j2
Mark Goddard c2a35ce211 Remove inspector_manage_firewall variable
This is supported in kolla-ansible via the ironic_inspector_pxe_filter
variable, which can be added to globals.yml. The default value for that
variable changed in the Stein release from 'iptables' to 'dnsmasq',
since the iptables filter does not work with Docker CE [1].

This change removes the inspector_manage_firewall variable.

This change also adds an iptables rule in CI tests to allow DHCP packets
to be forwarded, to ensure bare metal servers can be deployed.

[1] https://bugs.launchpad.net/kolla-ansible/+bug/1823044

Depends-On: https://review.openstack.org/649673
Change-Id: Idac6777b4d97fbd17698fc2086ceb068d7b2e326
Related-Bug: #1823044
2019-04-09 13:53:59 +01:00

52 lines
1.3 KiB
Django/Jinja

[DEFAULT]
[processing]
{% if kolla_inspector_processing_hooks %}
# Comma-separated list of inspector processing plugins.
processing_hooks = {{ kolla_inspector_processing_hooks | join(',') }}
{% endif %}
{% if kolla_inspector_add_ports %}
# Which MAC addresses to add as ports during introspection. One of 'all',
# 'active' or 'pxe'.
add_ports = {{ kolla_inspector_add_ports }}
{% endif %}
{% if kolla_inspector_keep_ports %}
# Keep only those ports that were found during inspection.
keep_ports = present
{% endif %}
# Store logs returned by the inspection ramdisk.
always_store_ramdisk_logs = True
{% if kolla_inspector_enable_discovery %}
# Enable discovery when nodes do not exist in Ironic.
node_not_found_hook = enroll
{% endif %}
{% if kolla_inspector_enable_swift %}
store_data = swift
{% endif %}
{% if kolla_inspector_enable_swift %}
[swift]
{% for key, value in kolla_inspector_swift_auth.items() %}
{{ key }} = {{ value }}
{% endfor %}
{% endif %}
{% if kolla_inspector_enable_discovery %}
[discovery]
# The driver with which to enroll newly discovered nodes in Ironic.
enroll_node_driver = {{ kolla_inspector_discovery_enroll_node_driver }}
{% endif %}
{% if kolla_extra_inspector %}
#######################
# Extra configuration
#######################
{{ kolla_extra_inspector }}
{% endif %}