nsd/templates/config.j2
2017-09-01 10:20:48 +02:00

35 lines
766 B
Django/Jinja

# NSD configuration, automatically generated by Ansible.
# Do not edit by hand!
server:
{% if nsd_common_config is defined %}
# Common configuration
{% for key, value in nsd_common_config.iteritems() %}
{% if value is string or value is number %}
{{ key }}: "{{ value }}"
{% else %}
{% for subvalue in value %}
{{ key }}: "{{ subvalue }}"
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
{% if nsd_local_config is defined %}
# Local configuration
{% for key, value in nsd_local_config.iteritems() %}
{% if value is string or value is number %}
{{ key }}: "{{ value }}"
{% else %}
{% for subvalue in value %}
{{ key }}: "{{ subvalue }}"
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
# Include zone definitions
include: "{{ zones_config_file }}"