Merge "Add translations test-site deployment option"
This commit is contained in:
@@ -1,3 +1,87 @@
|
||||
cidr_networks:
|
||||
dbaas: 172.29.232.0/22
|
||||
container: 172.29.236.0/22
|
||||
tunnel: 172.29.240.0/22
|
||||
storage: 172.29.244.0/22
|
||||
|
||||
used_ips:
|
||||
- "172.29.232.1,172.29.232.50"
|
||||
- "172.29.232.100"
|
||||
- "172.29.233.100,172.29.233.210"
|
||||
- "172.29.236.1,172.29.236.50"
|
||||
- "172.29.236.100"
|
||||
- "172.29.240.1,172.29.240.50"
|
||||
- "172.29.240.100"
|
||||
- "172.29.244.1,172.29.244.50"
|
||||
- "172.29.244.100"
|
||||
- "172.29.248.1,172.29.248.50"
|
||||
- "172.29.248.100"
|
||||
|
||||
global_overrides:
|
||||
provider_networks:
|
||||
- network:
|
||||
container_bridge: "br-mgmt"
|
||||
container_type: "veth"
|
||||
container_interface: "eth1"
|
||||
ip_from_q: "container"
|
||||
type: "raw"
|
||||
group_binds:
|
||||
- all_containers
|
||||
- hosts
|
||||
is_container_address: true
|
||||
is_ssh_address: true
|
||||
- network:
|
||||
container_bridge: "br-vxlan"
|
||||
container_type: "veth"
|
||||
container_interface: "eth10"
|
||||
ip_from_q: "tunnel"
|
||||
type: "vxlan"
|
||||
range: "1:1000"
|
||||
net_name: "vxlan"
|
||||
group_binds:
|
||||
- neutron_linuxbridge_agent
|
||||
- network:
|
||||
container_bridge: "br-vlan"
|
||||
container_type: "veth"
|
||||
container_interface: "eth12"
|
||||
host_bind_override: "eth12"
|
||||
type: "flat"
|
||||
net_name: "flat"
|
||||
group_binds:
|
||||
- neutron_linuxbridge_agent
|
||||
- network:
|
||||
container_bridge: "br-dbaas"
|
||||
container_type: "veth"
|
||||
container_interface: "eth13"
|
||||
host_bind_override: "eth13"
|
||||
ip_from_q: "dbaas"
|
||||
type: "flat"
|
||||
net_name: "flat-db"
|
||||
group_binds:
|
||||
- neutron_linuxbridge_agent
|
||||
- rabbitmq
|
||||
- network:
|
||||
container_bridge: "br-vlan"
|
||||
container_type: "veth"
|
||||
container_interface: "eth11"
|
||||
type: "vlan"
|
||||
range: "1:1"
|
||||
net_name: "vlan"
|
||||
group_binds:
|
||||
- neutron_linuxbridge_agent
|
||||
- network:
|
||||
container_bridge: "br-storage"
|
||||
container_type: "veth"
|
||||
container_interface: "eth2"
|
||||
ip_from_q: "storage"
|
||||
type: "raw"
|
||||
group_binds:
|
||||
- glance_api
|
||||
- cinder_api
|
||||
- cinder_volume
|
||||
- nova_compute
|
||||
- swift_proxy
|
||||
|
||||
trove-infra_hosts:
|
||||
aio1:
|
||||
ip: 172.29.236.100
|
||||
|
||||
@@ -44,6 +44,20 @@
|
||||
- name: keystone.yml.aio
|
||||
- name: neutron.yml.aio
|
||||
- name: nova.yml.aio
|
||||
translations:
|
||||
- name: cinder.yml.aio
|
||||
- name: designate.yml.aio
|
||||
- name: glance.yml.aio
|
||||
- name: heat.yml.aio
|
||||
- name: horizon.yml.aio
|
||||
- name: keystone.yml.aio
|
||||
- name: neutron.yml.aio
|
||||
- name: nova.yml.aio
|
||||
- name: swift.yml.aio
|
||||
- name: sahara.yml.aio
|
||||
- name: magnum.yml.aio
|
||||
- name: octavia.yml.aio
|
||||
- name: trove.yml.aio
|
||||
sftp_subsystem: "{{ (ansible_pkg_mgr == 'apt') | ternary('sftp /usr/lib/openssh/sftp-server','sftp /usr/libexec/openssh/sftp-server') }}"
|
||||
sshd:
|
||||
ListenAddress:
|
||||
|
||||
@@ -96,13 +96,15 @@
|
||||
- networking-interfaces-load
|
||||
|
||||
- name: Shut down the network interfaces
|
||||
command: "ifdown {{ item }}"
|
||||
command: "ifdown {{ item.name }}"
|
||||
when: osa_interfaces | changed or osa_multinode_interfaces | changed or network_interfaces_rhel | changed
|
||||
with_items:
|
||||
- br-mgmt
|
||||
- br-storage
|
||||
- br-vlan
|
||||
- br-vxlan
|
||||
- { name: br-mgmt }
|
||||
- { name: br-storage }
|
||||
- { name: br-vlan }
|
||||
- { name: br-vxlan }
|
||||
- { name: br-dbaas, enabled: "{{ (bootstrap_host_scenario == 'translations') | bool }}" }
|
||||
when: item.enabled | default(True)
|
||||
tags:
|
||||
- networking-interfaces-stop
|
||||
|
||||
@@ -125,13 +127,15 @@
|
||||
- networking-interfaces-start
|
||||
|
||||
- name: Start the network interfaces
|
||||
command: "ifup {{ item }}"
|
||||
command: "ifup {{ item.name }}"
|
||||
when: osa_interfaces | changed or network_interfaces_rhel | changed
|
||||
with_items:
|
||||
- br-mgmt
|
||||
- br-storage
|
||||
- br-vlan
|
||||
- br-vxlan
|
||||
- { name: br-mgmt }
|
||||
- { name: br-storage }
|
||||
- { name: br-vlan }
|
||||
- { name: br-vxlan }
|
||||
- { name: br-dbaas, enabled: "{{ (bootstrap_host_scenario == 'translations') | bool }}" }
|
||||
when: item.enabled | default(True)
|
||||
tags:
|
||||
- networking-interfaces-start
|
||||
|
||||
|
||||
@@ -58,6 +58,25 @@ iface br-vlan inet static
|
||||
post-down ip link del br-vlan-veth || true
|
||||
bridge_ports br-vlan-veth
|
||||
|
||||
{% if bootstrap_host_scenario == "translations" %}
|
||||
auto br-dbaas
|
||||
iface br-dbaas inet static
|
||||
bridge_stp off
|
||||
bridge_waitport 0
|
||||
bridge_fd 0
|
||||
address 172.29.232.100
|
||||
netmask 255.255.252.0
|
||||
offload-sg off
|
||||
# Create veth pair, don't bomb if already exists
|
||||
pre-up ip link add br-dbaas-veth type veth peer name eth13 || true
|
||||
# Set both ends UP
|
||||
pre-up ip link set br-dbaas-veth up
|
||||
pre-up ip link set eth13 up
|
||||
# Delete veth pair on DOWN
|
||||
post-down ip link del br-dbaas-veth || true
|
||||
bridge_ports br-dbaas-veth
|
||||
|
||||
{% endif %}
|
||||
# Add an additional address to br-vlan
|
||||
iface br-vlan inet static
|
||||
# Flat network default gateway
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
{% include 'user_variables.aio.yml.j2' %}
|
||||
|
||||
# Trove settings for translations site.
|
||||
trove_provider_net_name: flat-db
|
||||
trove_service_net_phys_net: flat-db
|
||||
trove_service_net_setup: True
|
||||
trove_service_net_subnet_cidr: "172.29.232.0/22"
|
||||
trove_service_net_allocation_pool_start: "172.29.233.110"
|
||||
trove_service_net_allocation_pool_end: "172.29.233.200"
|
||||
Reference in New Issue
Block a user