38 lines
815 B
Django/Jinja
38 lines
815 B
Django/Jinja
# -*- text -*-
|
|
##
|
|
## clients.conf -- FreeRADIUS client definitions
|
|
##
|
|
## Managed by Ansible — do not edit manually.
|
|
##
|
|
{% for client in freeradius_clients %}
|
|
client {{ client.name }} {
|
|
ipaddr = {{ client.ipaddr }}
|
|
proto = *
|
|
secret = {{ client.secret }}
|
|
{% if client.shortname is defined %}
|
|
shortname = {{ client.shortname }}
|
|
{% endif %}
|
|
require_message_authenticator = no
|
|
{% if client.nas_type is defined %}
|
|
nas_type = {{ client.nas_type }}
|
|
{% else %}
|
|
nas_type = other
|
|
{% endif %}
|
|
{% if client.virtual_server is defined %}
|
|
virtual_server = {{ client.virtual_server }}
|
|
{% endif %}
|
|
{% if client.limit is defined %}
|
|
limit {
|
|
{% for k, v in client.limit.items() %}
|
|
{{ k }} = {{ v }}
|
|
{% endfor %}
|
|
}
|
|
{% else %}
|
|
limit {
|
|
max_connections = 16
|
|
lifetime = 0
|
|
idle_timeout = 30
|
|
}
|
|
{% endif %}
|
|
}
|
|
{% endfor %}
|