proxmox: standardize interface names and set up management VRF

No idea how badly this clashes with GUI configuration.
This commit is contained in:
Timotej Lazar 2023-07-17 16:37:45 +02:00
parent aae782a66b
commit 2330edf479
8 changed files with 94 additions and 6 deletions

View file

@ -0,0 +1,16 @@
auto lo
iface lo inet loopback
auto mgmt
iface mgmt
address 127.0.0.1/8
address ::1/128
vrf-table auto
auto {{ iface_mgmt }}
iface {{ iface_mgmt }}
vrf mgmt
address {{ ansible_host }}/{{ mgmt_gw | ipaddr('prefix') }}
gateway {{ mgmt_gw | ipaddr('address') }}
source /etc/network/interfaces.d/*