NSD: Allow global or local configuration to be missing
This commit is contained in:
parent
6538ccda29
commit
a5d94f234a
@ -2,6 +2,7 @@
|
|||||||
# Do not edit by hand!
|
# Do not edit by hand!
|
||||||
|
|
||||||
server:
|
server:
|
||||||
|
{% if nsd_common_config is defined %}
|
||||||
# Common configuration
|
# Common configuration
|
||||||
{% for key, value in nsd_common_config.iteritems() %}
|
{% for key, value in nsd_common_config.iteritems() %}
|
||||||
{% if value is string or value is number %}
|
{% if value is string or value is number %}
|
||||||
@ -12,7 +13,9 @@ server:
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if nsd_local_config is defined %}
|
||||||
# Local configuration
|
# Local configuration
|
||||||
{% for key, value in nsd_local_config.iteritems() %}
|
{% for key, value in nsd_local_config.iteritems() %}
|
||||||
{% if value is string or value is number %}
|
{% if value is string or value is number %}
|
||||||
@ -23,6 +26,7 @@ server:
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
# Include zone definitions
|
# Include zone definitions
|
||||||
|
Loading…
Reference in New Issue
Block a user