summaryrefslogtreecommitdiff
path: root/cfengine/cf.services.dns
diff options
context:
space:
mode:
authorJuri Jensen <juri@xenux.dk>2001-12-14 23:45:00 +0000
committerJuri Jensen <juri@xenux.dk>2001-12-14 23:45:00 +0000
commit0f18c6f0a81bb9a899c355a1577eaa8e673197e2 (patch)
treeb0eaff534afbae2f439e29a42aa19f9d1768e715 /cfengine/cf.services.dns
parent5a135b92731cb8bf2b436ff14115cd87cf7209cb (diff)
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!
Diffstat (limited to 'cfengine/cf.services.dns')
-rw-r--r--cfengine/cf.services.dns14
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"