Add the right ironic_inspector config file path

Patch #3 to fix a stupid thing.

Change-Id: If4b893cfc95b35cae9af2d7168030b9dbdbc73ec
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
This commit is contained in:
Gael Chamoulaud 2018-12-01 08:50:31 +01:00
parent d975864e05
commit d00b06b3ce
1 changed files with 2 additions and 2 deletions

View File

@ -15,11 +15,11 @@
tasks:
- name: Look up the introspection interface
become: True
ini: path=/var/lib/config-data/puppet-generated/etc/ironic-inspector/inspector.conf section=iptables key=dnsmasq_interface
ini: path=/var/lib/config-data/puppet-generated/ironic_inspector/etc/ironic-inspector/inspector.conf section=iptables key=dnsmasq_interface
register: interface
- name: Look up the introspection interface from the deprecated option
become: True
ini: path=/var/lib/config-data/puppet-generated/etc/ironic-inspector/inspector.conf section=firewall key=dnsmasq_interface
ini: path=/var/lib/config-data/puppet-generated/ironic_inspector/etc/ironic-inspector/inspector.conf section=firewall key=dnsmasq_interface
register: interface_deprecated
- name: Look for rogue DHCP servers
script: files/rogue_dhcp.py {{ interface.value or interface_deprecated.value or 'br-ctlplane' }}