fix: add networkmanager config for eth0 to set route metric
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
05add10a5c
commit
5cad03393b
4
rocky-9/data/files/nm-eth0.conf
Normal file
4
rocky-9/data/files/nm-eth0.conf
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[connection-eth0]
|
||||||
|
match-device=interface-name:eth0
|
||||||
|
ipv4.route-metric=0
|
||||||
|
ipv6.route-metric=0
|
@ -166,6 +166,11 @@ ${files_hcloud_ssh_keys_service}
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
systemctl enable hcloud-ssh-keys.service
|
systemctl enable hcloud-ssh-keys.service
|
||||||
|
|
||||||
|
cat >/etc/NetworkManager/conf.d/eth0.conf <<\EOF
|
||||||
|
${files_hcloud_nm_eth0}
|
||||||
|
EOF
|
||||||
|
chmod 644 /etc/NetworkManager/conf.d/eth0.conf
|
||||||
%end
|
%end
|
||||||
|
|
||||||
### Reboot after the installation is complete.
|
### Reboot after the installation is complete.
|
||||||
|
@ -20,6 +20,7 @@ locals {
|
|||||||
files_hetznercloud_default_init = file("${abspath(path.root)}/data/files/90-hetznercloud.cfg")
|
files_hetznercloud_default_init = file("${abspath(path.root)}/data/files/90-hetznercloud.cfg")
|
||||||
files_hetznercloud_ds_init = file("${abspath(path.root)}/data/files/92-hetznercloud-ds.cfg")
|
files_hetznercloud_ds_init = file("${abspath(path.root)}/data/files/92-hetznercloud-ds.cfg")
|
||||||
files_hetznercloud_init = file("${abspath(path.root)}/data/files/93-hetznercloud.cfg")
|
files_hetznercloud_init = file("${abspath(path.root)}/data/files/93-hetznercloud.cfg")
|
||||||
|
files_hcloud_nm_eth0 = file("${abspath(path.root)}/data/files/nm-eth0.conf")
|
||||||
})
|
})
|
||||||
build_id = "${uuidv4()}"
|
build_id = "${uuidv4()}"
|
||||||
build_labels = {
|
build_labels = {
|
||||||
|
Loading…
Reference in New Issue
Block a user