update example playbook to mirror a prod network

Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
Kevin Carter 2018-03-16 02:11:38 -05:00
parent dd82b31ee2
commit 677909eaa1
No known key found for this signature in database
GPG Key ID: 9443251A787B9FB3

View File

@ -1,17 +1,27 @@
.. code-block:: yaml
---
- name: Create a systemd-networkd interfaces
hosts: localhost
become: true
roles:
- role: "systemd_networkd"
systemd_interface_cleanup: true
systemd_run_networkd: true
systemd_netdevs:
- NetDev:
Name: dummy0
Kind: dummy
- NetDev:
Name: dummy2
Kind: dummy
- NetDev:
Name: dummy1
Kind: dummy
- NetDev:
Name: dummy3
Kind: dummy
- NetDev:
Name: bond0
Kind: bond
@ -21,24 +31,153 @@
MIIMonitorSec: 1s
LACPTransmitRate: fast
- NetDev:
Name: br-dummy
Name: bond1
Kind: bond
Bond:
Mode: 802.3ad
TransmitHashPolicy: layer3+4
MIIMonitorSec: 1s
LACPTransmitRate: fast
- NetDev:
Name: bond0.110
Kind: vlan
VLAN:
Id: 110
- NetDev:
Name: bond0.120
Kind: vlan
VLAN:
Id: 120
- NetDev:
Name: bond0.130
Kind: vlan
VLAN:
Id: 130
- NetDev:
Name: bond0.140
Kind: vlan
VLAN:
Id: 140
- NetDev:
Name: bond1.210
Kind: vlan
VLAN:
Id: 210
- NetDev:
Name: br-mgmt
Kind: bridge
- NetDev:
Name: br-vxlan
Kind: bridge
- NetDev:
Name: br-storage
Kind: bridge
- NetDev:
Name: br-vlan
Kind: bridge
- NetDev:
Name: br-dbaas
Kind: bridge
- NetDev:
Name: br-lbaas
Kind: bridge
- NetDev:
Name: br-vlan-veth
Kind: veth
Peer:
Name: eth12
- NetDev:
Name: br-dbaas-veth
Kind: veth
Peer:
Name: eth13
- NetDev:
Name: br-lbaas-veth
Kind: veth
Peer:
Name: eth14
systemd_networks:
- interface: "dummy0"
bond: "bond0"
mtu: 9000
- interface: "dummy1"
- interface: "dummy2"
bond: "bond0"
mtu: 9000
- interface: "dummy1"
bond: "bond1"
mtu: 9000
- interface: "dummy3"
bond: "bond1"
mtu: 9000
- interface: "bond0"
bridge: "br-dummy"
mtu: 9000
- interface: "br-dummy"
address: "10.0.0.100"
netmask: "255.255.255.0"
gateway: "10.0.0.1"
mtu: 9000
usedns: true
config_overrides:
Network:
ConfigureWithoutCarrier: true
VLAN:
? "bond0.110"
? "bond0.120"
? "bond0.130"
? "bond0.140"
mtu: 9000
- interface: "bond1"
bridge: "br-vlan"
config_overrides:
Network:
VLAN:
? "bond1.210"
mtu: 9000
- interface: "bond0.110"
bridge: "br-mgmt"
mtu: 9000
- interface: "br-mgmt"
address: "172.29.236.100"
netmask: "255.255.252.0"
- interface: "bond0.120"
bridge: "br-storage"
mtu: 9000
- interface: "br-storage"
address: "172.29.244.100"
netmask: "255.255.252.0"
- interface: "bond0.130"
bridge: "br-dbaas"
mtu: 9000
- interface: "br-dbaas"
address: "172.29.232.100"
netmask: "255.255.252.0"
- interface: "br-dbaas-veth"
bridge: "br-dbaas"
mtu: 9000
- interface: "bond0.140"
bridge: "br-lbaas"
mtu: 9000
- interface: "br-lbaas"
address: "172.29.252.100"
netmask: "255.255.252.0"
- interface: "br-lbaas-veth"
bridge: "br-lbaas"
mtu: 9000
- interface: "bond1.210"
bridge: "br-vxlan"
mtu: 9000
- interface: "br-vxlan"
address: "172.29.240.100"
netmask: "255.255.252.0"
- interface: "br-vlan"
config_overrides:
Network:
Address:
? "172.29.248.100/22"
? "172.29.248.1/22"
- interface: "br-vlan-veth"
bridge: "br-vlan"
mtu: 9000