From a5d94f234a93e4ca781280ff8bcd632300857726 Mon Sep 17 00:00:00 2001 From: Baptiste Jonglez Date: Sun, 27 Mar 2016 18:06:15 +0200 Subject: [PATCH] NSD: Allow global or local configuration to be missing --- templates/config.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/config.j2 b/templates/config.j2 index 777f7ed..16c9dc6 100644 --- a/templates/config.j2 +++ b/templates/config.j2 @@ -2,6 +2,7 @@ # 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 %} @@ -12,7 +13,9 @@ server: {% 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 %} @@ -23,6 +26,7 @@ server: {% endfor %} {% endif %} {% endfor %} +{% endif %} # Include zone definitions