proxmox: consolidate interface templates
This commit is contained in:
parent
7b4cb8f579
commit
0af8474e52
6 changed files with 23 additions and 29 deletions
|
@ -2,7 +2,7 @@
|
|||
api_filter='name='~cluster) | first -%}
|
||||
|
||||
# bridges must be named vmbrN for proxmox to care
|
||||
{% for vlan in my_cluster.custom_fields.vlans | sort(attribute='vid') %}
|
||||
{% for vlan in my_cluster.custom_fields.vlans | default([], true) | sort(attribute='vid') %}
|
||||
auto vmbr{{ vlan.vid }}
|
||||
iface vmbr{{ vlan.vid }} inet manual
|
||||
# {{ vlan.name }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue