Skip to content

Instantly share code, notes, and snippets.

@lbragstad
Last active July 30, 2018 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lbragstad/f330ee14f69a27d1fa56fde33cfe1605 to your computer and use it in GitHub Desktop.
Save lbragstad/f330ee14f69a27d1fa56fde33cfe1605 to your computer and use it in GitHub Desktop.
OpenStack-Ansible All-in-One
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet manual
auto eth1
iface eth1 inet manual
auto br-mgmt
iface br-mgmt inet static
### flat veth
pre-up ip link add flat-veth1 type veth peer name flat-veth2 || true # Create veth pair
pre-up ip link set flat-veth1 up # Set the veth UP
pre-up ip link set flat-veth2 up # Set the veth UP
post-down ip link del flat-veth1 || true # Delete veth pair on DOWN
### flat veth
bridge_stp off
bridge_waitport 10
bridge_fd 0
bridge_ports eth1 flat-veth1
offload-sg off
# In order for this to work I setup a DHCP address reservation on my router to
# associate the MAC of eth1 to 192.168.1.10
address 192.168.1.10
gateway 192.168.1.1
---
cidr_networks:
container: "192.168.1.0/24"
used_ips:
- "192.168.1.10"
global_overrides:
internal_lb_vip_address: "192.168.1.10"
external_lb_vip_address: "192.168.1.10"
tunnel_bridge: "br-mgmt"
management_bridge: "br-mgmt"
provider_networks:
- network:
container_bridge: "br-mgmt"
container_type: "veth"
container_interface: "eth1"
host_bind_override: "flat-veth2"
ip_from_q: "container"
type: "flat"
net_name: "flat"
group_binds:
- all_containers
- hosts
is_container_address: true
is_ssh_address: true
- network:
container_bridge: "br-mgmt"
container_type: "veth"
container_interface: "eth10"
ip_from_q: "tunnel"
type: "vxlan"
range: "1:1000"
net_name: "vxlan"
group_binds:
- neutron_linuxbridge_agent
is_container_address: true
is_ssh_address: true
- 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment