32 lines
928 B
YAML
32 lines
928 B
YAML
---
|
|
- hosts: undercloud
|
|
become: true
|
|
vars:
|
|
metadata:
|
|
name: DHCP on the Provisioning Network
|
|
description: >
|
|
An unexpected DHCP server on the provisioning network can
|
|
cause problems with deploying the Ironic nodes.
|
|
|
|
This validation checks for DHCP responses on the undercloud's
|
|
provisioning interface (eth1 by default) and fails if there
|
|
are any.
|
|
groups:
|
|
- pre-deployment
|
|
tasks:
|
|
- include_tasks: tasks/deprecation.yaml
|
|
|
|
- name: Get the path of tripleo undercloud config file
|
|
hiera: name="tripleo_undercloud_conf_file"
|
|
|
|
- name: Gather undercloud.conf values
|
|
ini:
|
|
path: "{{ tripleo_undercloud_conf_file }}"
|
|
section: DEFAULT
|
|
key: local_interface
|
|
ignore_missing_file: True
|
|
register: local_interface
|
|
|
|
- name: Look for DHCP responses
|
|
script: files/rogue_dhcp.py {{ local_interface.value|default('eth1', true) }}
|