f349038b1d
The epel-release package provides a yum repository configuration for EPEL, and points to the upstream EPEL mirrors. In some cases this is undesirable, such as when a local EPEL mirror is available, or access to the public repositories is not possible. This change makes it possible to skip installation of epel-release, by setting 'yum_install_epel' to 'false'. Change-Id: Ib685b0c3e21df01c4dd177771f019fae4bb90e66 Story: 2003277 Task: 24218
25 lines
1.1 KiB
YAML
25 lines
1.1 KiB
YAML
---
|
|
- name: Ensure external network and subnet are registered in neutron
|
|
# Only required to run on a single host.
|
|
hosts: controllers[0]
|
|
roles:
|
|
- role: stackhpc.os-networks
|
|
os_shade_install_epel: "{{ yum_install_epel }}"
|
|
os_networks_venv: "{{ virtualenv_path }}/shade"
|
|
os_networks_openstack_auth_type: "{{ openstack_auth_type }}"
|
|
os_networks_openstack_auth: "{{ openstack_auth }}"
|
|
# Network configuration.
|
|
os_networks_name: "{{ item }}"
|
|
os_networks_type: "{% if item | net_vlan %}vlan{% else %}flat{% endif %}"
|
|
os_networks_physical_network: "physnet1"
|
|
os_networks_segmentation_id: "{{ item | net_vlan }}"
|
|
os_networks_shared: True
|
|
os_networks_external: True
|
|
# Subnet configuration.
|
|
os_networks_subnet_name: "{{ item }}"
|
|
os_networks_cidr: "{{ item | net_cidr }}"
|
|
os_networks_gateway_ip: "{{ item | net_gateway }}"
|
|
os_networks_allocation_pool_start: "{{ item | net_neutron_allocation_pool_start }}"
|
|
os_networks_allocation_pool_end: "{{ item | net_neutron_allocation_pool_end }}"
|
|
with_items: "{{ external_net_names }}"
|