Skip to content

Instantly share code, notes, and snippets.

@mmalchuk
Last active March 21, 2018 11:48
Show Gist options
  • Save mmalchuk/5ddf1f0865ae08ef8ed70f0864968ac4 to your computer and use it in GitHub Desktop.
Save mmalchuk/5ddf1f0865ae08ef8ed70f0864968ac4 to your computer and use it in GitHub Desktop.
OSA configs
# Loopback
auto lo
iface lo inet loopback
# Physical interface
auto ens3
iface ens3 inet manual
# Container/Host management VLAN interface
auto ens3.10
iface ens3.10 inet manual
vlan-raw-device ens3
# OpenStack Networking VXLAN (tunnel/overlay) VLAN interface
auto ens3.30
iface ens3.30 inet manual
vlan-raw-device ens3
# Storage network VLAN interface (optional)
auto ens3.20
iface ens3.20 inet manual
vlan-raw-device ens3
# Host network
auto br-host
iface br-host inet dhcp
bridge_ports ens3
bridge_stp off
# Container/Host management bridge
auto br-mgmt
iface br-mgmt inet static
bridge_stp off
bridge_waitport 0
bridge_fd 0
bridge_ports ens3.10
address 172.29.236.12
netmask 255.255.252.0
# OpenStack Networking VXLAN (tunnel/overlay) bridge
auto br-vxlan
iface br-vxlan inet static
bridge_stp off
bridge_waitport 0
bridge_fd 0
bridge_ports ens3.30
address 172.29.240.12
netmask 255.255.252.0
# OpenStack Networking VLAN bridge
auto br-vlan
iface br-vlan inet manual
bridge_stp off
bridge_waitport 0
bridge_fd 0
bridge_ports ens3
# Storage bridge (optional)
auto br-storage
iface br-storage inet static
bridge_stp off
bridge_waitport 0
bridge_fd 0
bridge_ports ens3.20
address 172.29.244.12
netmask 255.255.252.0
# Loopback
auto lo
iface lo inet loopback
# Physical interface
auto ens3
iface ens3 inet manual
# Container/Host management VLAN interface
auto ens3.10
iface ens3.10 inet manual
vlan-raw-device ens3
# OpenStack Networking VXLAN (tunnel/overlay) VLAN interface
auto ens3.30
iface ens3.30 inet manual
vlan-raw-device ens3
# Storage network VLAN interface (optional)
auto ens3.20
iface ens3.20 inet manual
vlan-raw-device ens3
# Host network
auto br-host
iface br-host inet dhcp
bridge_ports ens3
bridge_stp off
# Container/Host management bridge
auto br-mgmt
iface br-mgmt inet static
bridge_stp off
bridge_waitport 0
bridge_fd 0
bridge_ports ens3.10
address 172.29.236.11
netmask 255.255.252.0
# Bind the External VIP
auto br-mgmt:0
iface br-mgmt:0 inet static
address 172.29.236.10
netmask 255.255.252.0
# OpenStack Networking VXLAN (tunnel/overlay) bridge
auto br-vxlan
iface br-vxlan inet manual
bridge_stp off
bridge_waitport 0
bridge_fd 0
bridge_ports ens3.30
# OpenStack Networking VLAN bridge
auto br-vlan
iface br-vlan inet manual
bridge_stp off
bridge_waitport 0
bridge_fd 0
bridge_ports ens3
# Storage bridge (optional)
auto br-storage
iface br-storage inet manual
bridge_stp off
bridge_waitport 0
bridge_fd 0
bridge_ports ens3.20
---
cidr_networks:
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.240.1,172.29.240.50"
- "172.29.244.1,172.29.244.50"
- "172.29.248.1,172.29.248.50"
global_overrides:
# The internal and external VIP should be different IPs, however they
# do not need to be on separate networks.
external_lb_vip_address: 172.29.236.10
internal_lb_vip_address: 172.29.236.11
tunnel_bridge: "br-vxlan"
management_bridge: "br-mgmt"
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
###
### Infrastructure
###
# galera, memcache, rabbitmq, utility
shared-infra_hosts:
infra1:
ip: 172.29.236.11
# repository (apt cache, python packages, etc)
repo-infra_hosts:
infra1:
ip: 172.29.236.11
# load balancer
haproxy_hosts:
infra1:
ip: 172.29.236.11
###
### OpenStack
###
# keystone
identity_hosts:
infra1:
ip: 172.29.236.11
# cinder api services
storage-infra_hosts:
infra1:
ip: 172.29.236.11
# glance
image_hosts:
infra1:
ip: 172.29.236.11
# nova api, conductor, etc services
compute-infra_hosts:
infra1:
ip: 172.29.236.11
# heat
orchestration_hosts:
infra1:
ip: 172.29.236.11
# horizon
dashboard_hosts:
infra1:
ip: 172.29.236.11
# neutron server, agents (L3, etc)
network_hosts:
infra1:
ip: 172.29.236.11
# nova hypervisors
compute_hosts:
compute1:
ip: 172.29.236.12
# cinder storage host (LVM-backed)
storage_hosts:
storage1:
ip: 172.29.236.13
container_vars:
cinder_backends:
limit_container_types: cinder_volume
lvm:
volume_group: cinder-volumes
volume_driver: cinder.volume.drivers.lvm.LVMVolumeDriver
volume_backend_name: LVM_iSCSI
iscsi_ip_address: "172.29.244.13"
# Loopback
auto lo
iface lo inet loopback
# Physical interface
auto ens3
iface ens3 inet manual
# Container/Host management VLAN interface
auto ens3.10
iface ens3.10 inet manual
vlan-raw-device ens3
# OpenStack Networking VXLAN (tunnel/overlay) VLAN interface
auto ens3.30
iface ens3.30 inet manual
vlan-raw-device ens3
# Storage network VLAN interface (optional)
auto ens3.20
iface ens3.20 inet manual
vlan-raw-device ens3
# Host network
auto br-host
iface br-host inet dhcp
bridge_ports ens3
bridge_stp off
# Container/Host management bridge
auto br-mgmt
iface br-mgmt inet static
bridge_stp off
bridge_waitport 0
bridge_fd 0
bridge_ports ens3.10
address 172.29.236.13
netmask 255.255.252.0
# OpenStack Networking VXLAN (tunnel/overlay) bridge
auto br-vxlan
iface br-vxlan inet manual
bridge_stp off
bridge_waitport 0
bridge_fd 0
bridge_ports ens3.30
# OpenStack Networking VLAN bridge
auto br-vlan
iface br-vlan inet manual
bridge_stp off
bridge_waitport 0
bridge_fd 0
bridge_ports ens3
# Storage bridge (optional)
auto br-storage
iface br-storage inet static
bridge_stp off
bridge_waitport 0
bridge_fd 0
bridge_ports ens3.20
address 172.29.244.13
netmask 255.255.252.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment