xci: Add main playbooks and files
[releng.git] / prototypes / xci / template / controller.interface.j2
1 # This file describes the network interfaces available on your system
2 # and how to activate them. For more information, see interfaces(5).
3
4 # The loopback network interface
5 auto lo
6 iface lo inet loopback
7
8 # Physical interface
9 auto ens3
10 iface ens3 inet manual
11
12 # Container/Host management VLAN interface
13 auto ens3.10
14 iface ens3.10 inet manual
15     vlan-raw-device ens3
16
17 # OpenStack Networking VXLAN (tunnel/overlay) VLAN interface
18 auto ens3.30
19 iface ens3.30 inet manual
20     vlan-raw-device ens3
21
22 # Storage network VLAN interface (optional)
23 auto ens3.20
24 iface ens3.20 inet manual
25     vlan-raw-device ens3
26
27 # Container/Host management bridge
28 auto br-mgmt
29 iface br-mgmt inet static
30     bridge_stp off
31     bridge_waitport 0
32     bridge_fd 0
33     bridge_ports ens3.10
34     address {{host_info[inventory_hostname].MGMT_IP}}
35     netmask 255.255.252.0
36
37 # OpenStack Networking VXLAN (tunnel/overlay) bridge
38 #
39 # Only the COMPUTE and NETWORK nodes must have an IP address
40 # on this bridge. When used by infrastructure nodes, the
41 # IP addresses are assigned to containers which use this
42 # bridge.
43 #
44 auto br-vxlan
45 iface br-vxlan inet manual
46     bridge_stp off
47     bridge_waitport 0
48     bridge_fd 0
49     bridge_ports ens3.30
50
51 # OpenStack Networking VLAN bridge
52 auto br-vlan
53 iface br-vlan inet static
54     bridge_stp off
55     bridge_waitport 0
56     bridge_fd 0
57     bridge_ports ens3
58     address {{host_info[inventory_hostname].VLAN_IP}}
59     netmask 255.255.255.0
60     gateway 192.168.122.1
61     dns-nameserver 8.8.8.8 8.8.4.4
62
63 # compute1 Storage bridge
64 auto br-storage
65 iface br-storage inet static
66     bridge_stp off
67     bridge_waitport 0
68     bridge_fd 0
69     bridge_ports ens3.20
70     address {{host_info[inventory_hostname].STORAGE_IP}}
71     netmask 255.255.252.0