diff options
-rw-r--r-- | cfengine/cf.services.dns | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/cfengine/cf.services.dns b/cfengine/cf.services.dns index 366475d..8b87b1e 100644 --- a/cfengine/cf.services.dns +++ b/cfengine/cf.services.dns @@ -1,5 +1,8 @@ +control: + AddInstallable = ( bind_reload ) + editfiles: - { /etc/bind/named.conf + { /etc/bind/named.conf # # TODO... # BeginGroupIfNoLineContaining "logging " @@ -26,4 +29,13 @@ editfiles: # BeginGroupIfNoLineMatching '\<category[[:blank:]]*statistics\>' # Append " category statistics { null; };" # EndGroup +# + BeginGroupIfNoLineMatching '^include[[:blank:]]"/etc/local-COMMON/bind/named_$(domain).conf";.*' + Append 'include "/etc/local-COMMON/bind/named_$(domain).conf";' + EndGroup + DefineClasses "bind_reload" } + +shellcommands: + bind_reload:: + "/etc/init.d/bind force-reload" |