ansible/roles/freeradius/templates/clients.conf.j2

16 lines
388 B
Django/Jinja

{{ ansible_managed | comment }}
{% for name, client in radiusd__clients.items() %}
client {{ name }} {
ipaddr = {{ client.addr }}
shortname = {{ name }}
proto = *
require_message_authenticator = yes
nastype = other
secret = {{ client.secret }}
{% if client.virtual_server is defined %}
virtual_server = {{ client.virtual_server }}
{% endif %}
}
{% endfor %}