Merge "Fix the DHCP validations"

This commit is contained in:
Jenkins
2016-11-15 12:35:58 +00:00
committed by Gerrit Code Review
2 changed files with 6 additions and 2 deletions

View File

@@ -13,8 +13,10 @@
groups:
- pre-introspection
tasks:
- name: Install python-virtualenv
package: name=python-virtualenv state=present
- name: Install scapy
pip: name=scapy state=present virtualenv=/tmp/validations-venv
pip: name=scapy version=2.3.2 state=present virtualenv=/tmp/validations-venv
- name: Look up the introspection interface
ini: path=/etc/ironic-inspector/inspector.conf section=firewall key=dnsmasq_interface
register: interface

View File

@@ -18,7 +18,9 @@
hiera: name="tripleo_undercloud_conf_file"
- name: Gather undercloud.conf values
undercloud_conf: undercloud_conf_path={{ tripleo_undercloud_conf_file }}
- name: Install python-virtualenv
package: name=python-virtualenv state=present
- name: Install scapy
pip: name=scapy state=present virtualenv=/tmp/validations-venv
pip: name=scapy version=2.3.2 state=present virtualenv=/tmp/validations-venv
- name: Look for DHCP responses
script: files/rogue_dhcp.py {{ undercloud_conf.DEFAULT.local_interface|default('eth1') }}