homelab/roles/base/templates/interfaces.j2

8 lines
177 B
Django/Jinja

auto eth0
iface eth0 inet static
address {{ static_ip }}
broadcast {{ broadcast_ip }}
netmask 255.255.255.0
gateway {{ router_ip }}
dns-nameservers {{ router_ip }} 8.8.8.8