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

Update network to work with bridge.

parent 88092f63
network:
version: 2
renderer: networkd
ethernets:
ethernets: {% if opts.id not in ['rna-03', 'rna-04'] %}
eth0:
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
eth2:
dhcp4: no
dhcp6: no {% endif %}
wifis:
wlan0:
access-points:
LARN-5GHz:
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:
- source: salt://network/files/netplan
- user: root
- group: root
- clean: True
- template: jinja
- file_mode: keep
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