From b13af9ddfd01117b350243dd1cc483a35a420611 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 22 Jun 2020 01:12:15 +0200 Subject: all vm hosts/guests use the new network config schema --- chaos-at-home/ch-gnocchi.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'chaos-at-home/ch-gnocchi.yml') diff --git a/chaos-at-home/ch-gnocchi.yml b/chaos-at-home/ch-gnocchi.yml index c3811c50..fd519bfd 100644 --- a/chaos-at-home/ch-gnocchi.yml +++ b/chaos-at-home/ch-gnocchi.yml @@ -15,4 +15,24 @@ - name: install network interface config copy: dest: /etc/network/interfaces - content: "{{ __interface_configs__ }}" + content: | + # This file describes the network interfaces available on your system + # and how to activate them. For more information, see interfaces(5). + + # The loopback network interface + auto lo + iface lo inet loopback + {% for interface in (__vmhost_bridge_interface_zones__.keys() | sort) %} + + + auto {{ interface }} + iface {{ interface }} inet manual + {% for zone in __vmhost_bridge_interface_zones__[interface] %} + + auto {{ interface }}.{{ network_zones[zone].vlan }} + iface {{ interface }}.{{ network_zones[zone].vlan }} inet manual + {% endfor %} + {% endfor %} + + + source /etc/network/interfaces.d/* -- cgit v1.2.3