Created
August 15, 2017 13:44
-
-
Save logan2211/c7d2b93789e0dca7da737f276cfa8da2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
cidr_networks: &cidr_blocks | |
container: 172.29.236.0/22 | |
tunnel: 172.29.240.0/22 | |
storage: 172.29.244.0/22 | |
used_ips: | |
- "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: | |
internal_lb_vip_address: 172.29.236.100 | |
# The external IP is quoted simply to ensure that the .aio file can be used as input | |
# dynamic inventory testing. | |
external_lb_vip_address: "172.17.0.6" | |
tunnel_bridge: "br-vxlan" | |
management_bridge: "br-mgmt" | |
cidr_networks: *cidr_blocks | |
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-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 | |
# galera, memcache, rabbitmq, utility | |
shared-infra_hosts: | |
aio1: | |
ip: 172.29.236.100 | |
repo-infra_hosts: | |
aio1: | |
ip: 172.29.236.100 | |
log_hosts: | |
aio1: | |
ip: 172.29.236.100 | |
haproxy_hosts: | |
aio1: | |
ip: 172.29.236.100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo ansible -e @/etc/openstack_deploy/user_variables.yml localhost -m debug -a msg="{{ [monitor_interface, public_network, cluster_network] | join(' ') }}" | |
Variable files: "-e @/etc/openstack_deploy/user_secrets.yml -e @/etc/openstack_deploy/user_variables.yml " | |
localhost | SUCCESS => { | |
"msg": "br-mgmt 172.29.236.0/22 172.29.244.0/22" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
monitor_interface: "{{ management_bridge }}" | |
public_network: "{{ cidr_networks.container }}" | |
cluster_network: "{{ cidr_networks.storage }}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment