From 0f18c6f0a81bb9a899c355a1577eaa8e673197e2 Mon Sep 17 00:00:00 2001 From: Juri Jensen Date: Fri, 14 Dec 2001 23:45:00 +0000 Subject: cfengine: Modified cf.services.dns to include "named_$(domain).conf" in named.conf. I Also added a control section with an Installable class called bind_reload. This is still not enabled! --- cfengine/cf.services.dns | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'cfengine/cf.services.dns') 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 '\' # 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" -- cgit v1.2.3