This repository has been archived on 2023-05-19. You can view files and clone it, but cannot push or open issues or pull requests.
skylab-ansible/roles/server/templates/netdev.j2
Ethan Paul 487e41c058
Add networkd configuration to server role
Update inventory with necessary networking settings
2021-11-06 00:37:32 -04:00

19 lines
374 B
Django/Jinja

# ANSIBLE MANAGED FILE - DO NOT MANUALLY EDIT
#
[NetDev]
Name={{ item.key }}
type={{ item.value.type }}
{% if item.value.type.lower() == 'bond' %}
[Bond]
Mode={{ item.value.bond_mode | default('balance-rr') }}
PrimaryReselectPolicy=always
MIIMonitorSec=1s
{% endif %}
{% if item.value.type.lower() == 'vlan' %}
[VLAN]
Id={{ item.key.partition('.')[2] }}
{% endif %}
# EOF