![Will Szumski](/assets/img/avatar_default.png)
This change allows you to define additional VMs to deploy on the seed-hypervisor. Co-authored-by: Piotr Parczewski <piotr@stackhpc.com> Co-authored-by: Will Szumski <will@stackhpc.com> Co-authored-by: Mark Goddard <mark@stackhpc.com> Story: 2008741 Task: 42095 Change-Id: I8055fc5eb0a9edadcb35767303c659922f2d07ca
42 lines
1.5 KiB
YAML
42 lines
1.5 KiB
YAML
---
|
|
- name: Ensure networking is configured
|
|
hosts: seed-hypervisor:seed:overcloud:infra-vms
|
|
tags:
|
|
- config
|
|
- network
|
|
tasks:
|
|
- block:
|
|
- name: Validate network interface configuration
|
|
fail:
|
|
msg: >
|
|
Network interface validation failed - no interface configured for
|
|
{{ item }}. This should be configured via '{{ item }}_interface'.
|
|
with_items: "{{ ether_interfaces }}"
|
|
when: not item | net_interface
|
|
|
|
- name: Validate bridge interface configuration
|
|
fail:
|
|
msg: >
|
|
Bridge interface validation failed - no interface configured for
|
|
{{ item }}. This should be configured via '{{ item }}_interface'.
|
|
with_items: "{{ bridge_interfaces }}"
|
|
when: not item | net_interface
|
|
|
|
- name: Validate bond interface configuration
|
|
fail:
|
|
msg: >
|
|
Bond interface validation failed - no interface configured for
|
|
{{ item }}. This should be configured via '{{ item }}_interface'.
|
|
with_items: "{{ bond_interfaces }}"
|
|
when: not item | net_interface
|
|
vars:
|
|
ether_interfaces: "{{ network_interfaces | net_select_ethers | list }}"
|
|
bridge_interfaces: "{{ network_interfaces | net_select_bridges | list }}"
|
|
bond_interfaces: "{{ network_interfaces | net_select_bonds | list }}"
|
|
tags:
|
|
- config-validation
|
|
|
|
- name: Configure the network
|
|
include_role:
|
|
name: "network-{{ ansible_facts.os_family | lower }}"
|