Another network config attempt - 4

This commit is contained in:
Neill Cox 2023-09-25 19:53:46 +10:00
parent 2d886a4567
commit 5aa8dc36b7

View file

@ -8,8 +8,8 @@ ssh_pwauth: True
ssh_authorized_keys: ssh_authorized_keys:
- {data.public_key} - {data.public_key}
bootcmd: bootcmd:
- "nmcli con modify "System eth0" ipv4.address {data.cidr_1} ipv4.method static ipv4.gateway {data.gateway} ipv4.dns {data.dns}" - "nmcli con modify 'System eth0' ipv4.address {data.cidr_1} ipv4.method static ipv4.gateway {data.gateway} ipv4.dns {data.dns}"
- "nmcli con modify "Wired connection 1" ipv4.address {data.cidr_2} ipv4.method static ipv4.gateway {data.gateway} ipv4.dns {data.dns}" - "nmcli con modify 'Wired connection 1' ipv4.address {data.cidr_2} ipv4.method static ipv4.gateway {data.gateway} ipv4.dns {data.dns}"
- "nmcli networking off" - "nmcli networking off"
- "nmcli networking on" - "nmcli networking on"
# runcmd: # runcmd: