forked from mrlesmithjr/ansible-config-interfaces
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.yml
188 lines (175 loc) · 3.99 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
---
# Path to the template file for interfaces
ifupdown_interface_template: etc/network/interfaces.j2
# Define the name of the package which installs ifupdown
# ifupdown_package: "ifupdown"
# Defines all dns servers to configure
ifupdown_dns_nameservers:
- 8.8.8.8
- 8.8.4.4
# Defines your global dns suffix search
# ifupdown_dns_search: example.org
# Defines if interfaces, bonds, bridges, vlans, ovs_bonds, ovs_bridges and
# ovs_interfaces should be brought up after defining. This can be overridden
# with the `enable` option per interface. Please see the examples below.
ifupdown_enable_configured_interfaces_after_defining: false
# Defines non Open vSwitch network bonds
ifupdown_network_bonds:
[]
# - name: bond0
# address: 192.168.1.10
# netmask: 255.255.255.0
# configure: true
# enable: false
# comment: Bond Group 0
# method: static
# parameters:
# - param: bond_mode
# val: active-backup
# - param: bond_miimon
# val: 100
# # - param: miimon
# # val: 100
# # - param: mode
# # val: active-backup
# - param: primary
# val: enp0s9
# slaves:
# - enp0s9
# - enp0s10
# Defines non Open vSwitch network bridges
ifupdown_network_bridges:
[]
# - name: br0
# configure: true
# enable: false
# comment: Bridge 0
# method: static
# address: 192.168.1.11
# netmask: 255.255.255.0
# netmask_cidr: 24
# gateway: 192.168.1.1
# parameters:
# - param: bridge_stp
# val: off
# - param: bridge_fd
# val: 0
# # - param: up route add default gw
# # val: 10.0.106.1
# ports:
# - enp0s16
# Defines non Open vSwitch network interfaces
ifupdown_network_interfaces:
[]
# - name: enp0s3
# configure: true
# enable: false
# method: dhcp
# parameters:
# - param: pre-up sleep
# val: 2
# - name: enp0s8
# configure: true
# method: static
# address: 192.168.250.10
# netmask: 255.255.255.0
# - name: enp0s9
# configure: true
# comment: bond0 member
# method: manual
# parameters:
# - param: bond_master
# val: bond0
# - name: enp0s10
# configure: true
# comment: bond0 member
# method: manual
# parameters:
# - param: bond_master
# val: bond0
# - name: enp0s16
# configure: true
# comment: br0 member
# method: manual
# Defines non Open vSwitch network vlans
ifupdown_network_vlans:
[]
# - name: enp0s8.100
# configure: true
# enable: false
# comment: VLAN 100
# method: manual
# address:
# netmask:
# netmask_cidr:
# gateway:
# vlan_device: enp0s8
# Defines Open vSwitch bonds
ifupdown_ovs_bonds:
[]
# - name: bond0
# # address:
# bridge: vmbr0
# comment: OVS Bond
# configure: true
# enable: false
# # gateway:
# method: manual
# # netmask:
# # netmask_cidr:
# options:
# - opt: bond_mode
# val: active-backup
# - opt: lacp
# val: off
# # parameters:
# # - param: ''
# # val: ''
# ports:
# - enp0s9
# - enp0s10
# Defines Open vSwitch bridges
ifupdown_ovs_bridges:
[]
# - name: vmbr0
# # address:
# comment: OVS Bridge
# configure: true
# enable: false
# # gateway:
# method: manual
# # netmask:
# # netmask_cidr:
# # options:
# # - opt: ""
# # val: ""
# # parameters:
# # - param: ""
# # val: ""
# ports:
# # - enp0s9
# # - enp0s10
# - bond0
# - vlan1
# Defines Open vSwitch interfaces
ifupdown_ovs_interfaces:
[]
# - name: vlan1
# address:
# bridge: vmbr0
# comment: VLAN1
# configure: true
# enable: false
# gateway:
# method: static
# netmask:
# netmask_cidr:
# # options:
# # - opt: vlan_mode
# # val: access
# # parameters:
# Defines Open vSwitch ports
ifupdown_ovs_ports:
[]
# Install or not lldp
ifupdown_install_lldp: false