summaryrefslogtreecommitdiff
path: root/cfengine
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2002-11-26 01:01:28 +0000
committerJonas Smedegaard <dr@jones.dk>2002-11-26 01:01:28 +0000
commit52cb6af4aa53f50e20f68f63bb5cdd7cfeb19cca (patch)
tree19abb606353210abbe817f7693225d0a33f17dae /cfengine
parent2e47d283c0e4440b3640a5e34d797c3de04f7040 (diff)
cfengine: Hack on named.conf.local file instead of named.conf (update bind to sid or jones), and put comment on same line as edit (to ease grepping later).
Diffstat (limited to 'cfengine')
-rw-r--r--cfengine/cf.services.dns7
1 files changed, 4 insertions, 3 deletions
diff --git a/cfengine/cf.services.dns b/cfengine/cf.services.dns
index 9bced58..c405a9e 100644
--- a/cfengine/cf.services.dns
+++ b/cfengine/cf.services.dns
@@ -2,7 +2,7 @@ control:
AddInstallable = ( bind_reload )
editfiles:
- { /etc/bind/named.conf
+ { /etc/bind/named.conf
#
# TODO...
# BeginGroupIfNoLineContaining "logging "
@@ -30,10 +30,11 @@ editfiles:
# Append " category statistics { null; };"
# EndGroup
#
+ }
+ { /etc/bind/named.conf.local
BeginGroupIfFileExists "/etc/local-COMMON/bind/named_$(fqhost).conf"
BeginGroupIfNoLineMatching '^include[[:blank:]]"/etc/local-COMMON/bind/named_$(fqhost).conf";.*'
- Append 'include "/etc/local-COMMON/bind/named_$(fqhost).conf";'
- Append '# EDITED BY CFENGINE $(date)'
+ Append 'include "/etc/local-COMMON/bind/named_$(fqhost).conf # EDITED BY CFENGINE $(date)";'
EndGroup
DefineClasses "bind_reload"
EndGroup