Flat network fields (bridge, ip, prefix, gateway, vlan) are now converted into a single-entry interfaces[] list during normalization. All virtualization tasks (proxmox, vmware, libvirt, xen) and configuration (NM, Alpine, Void) now consume system_cfg.network.interfaces exclusively for multi-NIC support. Also fixes: user.key -> user.keys in system_cfg output, strict list-only DNS in example inventories, removes legacy single-MAC virtualization_mac_address default.
32 lines
837 B
Django/Jinja
32 lines
837 B
Django/Jinja
[connection]
|
|
id=LAN-{{ idx }}
|
|
uuid={{ configuration_net_uuid }}
|
|
type=ethernet
|
|
interface-name={{ configuration_iface_name }}
|
|
|
|
[ipv4]
|
|
{% set iface = configuration_iface %}
|
|
{% set dns_list = system_cfg.network.dns.servers | default([]) %}
|
|
{% set search_list = system_cfg.network.dns.search | default([]) %}
|
|
{% if iface.ip | default('') | string | length %}
|
|
address1={{ iface.ip }}/{{ iface.prefix }}{{ (',' ~ iface.gateway) if (iface.gateway | default('') | string | length) else '' }}
|
|
method=manual
|
|
{% else %}
|
|
method=auto
|
|
{% endif %}
|
|
{% if idx | int == 0 and dns_list %}
|
|
dns={{ dns_list | join(';') }}
|
|
{% endif %}
|
|
{% if idx | int == 0 and dns_list %}
|
|
ignore-auto-dns=true
|
|
{% endif %}
|
|
{% if idx | int == 0 and search_list %}
|
|
dns-search={{ search_list | join(';') }}
|
|
{% endif %}
|
|
|
|
[ipv6]
|
|
addr-gen-mode=stable-privacy
|
|
method=disabled
|
|
|
|
[proxy]
|