20 lines
588 B
Django/Jinja
20 lines
588 B
Django/Jinja
{{ ansible_managed | comment }}
|
|
|
|
{% for name, client in radiusd__clients.items() %}
|
|
client {{ name }} {
|
|
{% if client.addr | ansible.utils.ipv6 %}
|
|
ipaddrv6 = {{ client.addr | ansible.utils.ipv6("address") }}
|
|
{% else %}
|
|
ipaddr = {{ client.addr | ansible.utils.ipv4("address") }}
|
|
{% endif %}
|
|
netmask = {{ client.addr | ansible.utils.ipaddr("prefix") }}
|
|
proto = *
|
|
require_message_authenticator = yes
|
|
nastype = other
|
|
secret = {{ client.secret }}
|
|
{% if client.virtual_server is defined %}
|
|
virtual_server = {{ client.virtual_server }}
|
|
{% endif %}
|
|
}
|
|
|
|
{% endfor %}
|