This commit is contained in:
2024-10-25 10:25:04 -04:00
parent 2f3f4a8d2c
commit 160ffca2ee
55 changed files with 1201 additions and 349 deletions

21
templates/interfaces.j2 Normal file
View File

@@ -0,0 +1,21 @@
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# Libvirt networks
{% for network in libvirt_networks %}
{% if network.bridge.dev is defined %}
auto {{ network.bridge.dev }}
iface {{ network.bridge.dev }} inet manual
auto {{ network.bridge.name }}
iface {{ network.bridge.name }} inet dhcp
bridge_ports {{ network.bridge.dev }}
{% endif %}
{% endfor %}