--- install_interface: enp2s0 install_dhcp: true install: disks: primary: /dev/disk/by-id/ata-Samsung_SSD_860_EVO_mSATA_250GB_S41MNC0KA13977X kernel_cmdline: - console=ttyS0,115200n8 network: domain: spreadspace.org apt_repo_components: - main - contrib - non-free ## for microcode updates installer_lvm: vg: "{{ host_name }}" lv: installer size: 10G fs: ext4 __interface_zones__: enp1s0: - lan - svc enp2s0: - magenta enp3s0: - name: mgmt prefix: "{{ network_zones.mgmt.prefix | ipaddr(network_zones.mgmt.offsets[inventory_hostname]) }}" - iot __interface_zones_yaml__: | {% for interface in (__interface_zones__.keys() | sort) %} {% for zone in __interface_zones__[interface] %} {% if zone is mapping %} {{ zone.name }}: interfaces: - {{ interface }}.{{ network_zones[zone.name].vlan }} prefix: {{ zone.prefix }} {% else %} {{ zone }}: interfaces: - {{ interface }}.{{ network_zones[zone].vlan }} {% endif %} {% endfor %} {% endfor %} vm_host: network: bridges: "{{ __interface_zones_yaml__ | from_yaml }}" __interface_configs__: | # 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 (__interface_zones__.keys() | sort) %} auto {{ interface }} iface {{ interface }} inet manual {% for zone in __interface_zones__[interface] %} {% if zone is mapping %} auto {{ interface }}.{{ network_zones[zone.name].vlan }} iface {{ interface }}.{{ network_zones[zone.name].vlan }} inet manual {% else %} auto {{ interface }}.{{ network_zones[zone].vlan }} iface {{ interface }}.{{ network_zones[zone].vlan }} inet manual {% endif %} {% endfor %} {% endfor %} source /etc/network/interfaces.d/*