1
0
IaC/ansible/roles/vm_deploy/templates/eno1.network.j2
michael 50c451e94d add vm_destroy playbook and role
correct network addressing in template
write hostname to /etc/hostname
2022-10-30 23:48:43 +13:00

21 lines
319 B
Django/Jinja

[Match]
MACAddress={{ vm_mac_prefix }}{{ vm_number }}
[Link]
ARP=yes
[Address]
Address={{ vm_subnet_prefix }}{{ vm_number }}{{ vm_subnet_suffix }}
[Route]
Gateway={{ vm_gateway }}
Destination=0.0.0.0/0
Metric=10
[Network]
DHCP=no
LinkLocalAddressing=no
DNS={{ vm_gateway }}
Domains={{ vm_domain }}
NTP={{ vm_ntp }}