Added Netplan examples for a Openstack Infrastructure node.

Change-Id: I520b38b9f9194c277f44783570e74adb6261d266
Closes-Bug: 1900794
This commit is contained in:
Per Abildgaard Toft 2020-10-28 10:25:55 +01:00 committed by Dmitriy Rabotyagov (noonedeadpunk)
parent 0762e2c62d
commit 461071f1ba
2 changed files with 80 additions and 0 deletions

65
etc/netplan/01-static.yml Normal file
View File

@ -0,0 +1,65 @@
network:
version: 2
ethernets:
eno1:
mtu: 9000
eno2:
mtu: 9000
bonds:
bond0:
interfaces:
- eno1
- eno2
mtu: 9000
parameters:
lacp-rate: fast
mii-monitor-interval: 100
mode: 802.3ad
transmit-hash-policy: layer3+4
vlans:
bond0.10:
id: 10
link: bond0
bond0.20:
id: 20
link: bond0
bond0.30:
id: 30
link: bond0
bond0.40:
id: 40
link: bond0
bridges:
br-mgmt:
addresses:
- 172.29.236.10/22
interfaces:
- bond0
mtu: 9000
nameservers:
addresses:
- 8.8.8.8
- 8.8.4.4
search:
- example.com
br-storage:
addresses:
- 172.21.244.10/22
interfaces:
- bond0.20
mtu: 9000
br-vxlan:
addresses:
- 172.29.240.10/22
interfaces:
- bond0.30
mtu: 9000
br-ext:
addresses:
- 192.1.1.10/22
interfaces:
- bond0.40
gateway4: 192.1.1.1
br-vlan:
interfaces: bond0
mtu: 9000

15
etc/netplan/README.md Normal file
View File

@ -0,0 +1,15 @@
Ansible OpenStack Networking
============================
:date: 2020-10-21
:tags: openstack, cloud, ansible, networking, bond, netplan
:category: \*nix
:author Per Abildgaard Toft <per@minfejl.dk>
This directory contains an example network configuration for Netplan which is the new network
manager in Ubuntu. The files shoule be copied to /etc/netplan/ and applied with `netplan apply`.
These files should cover most cases in terms of host setup though should **NEVER** be taken
literally. These files should only serve as an example and **WILL** need to be edited to fit your
unique network needs.
On-line Resources:
* Netplan: https://netplan.io/examples/