Commit 2c329e2d authored by Andreas Schmidt's avatar Andreas Schmidt

Update network to work with bridge.

parent 88092f63
network: network:
version: 2 version: 2
renderer: networkd renderer: networkd
ethernets: ethernets: {% if opts.id not in ['rna-03', 'rna-04'] %}
eth0: eth0:
dhcp4: yes dhcp4: yes
dhcp6: no {% endif %} {% if opts.id in ['rna-04'] %}
eth0:
addresses:
- 10.8.1.2/24
dhcp4: no
dhcp6: no {% endif %} {% if opts.id in ['rna-03'] %}
eth0:
addresses:
- 10.8.1.3/24
dhcp4: no
dhcp6: no {% endif %} {% if opts.id in ['rna-03', 'rna-04'] %}
eth1:
dhcp4: yes
dhcp6: no {% endif %} {% if opts.id in ['rna-05'] %}
eth1:
dhcp4: no
dhcp6: no dhcp6: no
eth2:
dhcp4: no
dhcp6: no {% endif %}
wifis: wifis:
wlan0: wlan0:
access-points: access-points:
LARN-5GHz: LARN-5GHz:
password: "larn1914" password: "larn1914"
dhcp4: true dhcp4: true {% if opts.id in ['rna-05'] %}
bridges:
br0:
interfaces: [eth1, eth2]
dhcp4: no
parameters:
stp: false
forward-delay: 0{% endif %}
...@@ -20,6 +20,8 @@ netplan_cfg: ...@@ -20,6 +20,8 @@ netplan_cfg:
- source: salt://network/files/netplan - source: salt://network/files/netplan
- user: root - user: root
- group: root - group: root
- clean: True
- template: jinja
- file_mode: keep - file_mode: keep
netplan_run: netplan_run:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment