blob: 9bced5813d206cec2e0e076b828f043b7534e3ee (
plain)
- control:
- AddInstallable = ( bind_reload )
-
- editfiles:
- { /etc/bind/named.conf
- #
- # TODO...
- # BeginGroupIfNoLineContaining "logging "
- # BeginGroupIfNoLineMatching '\<logging[[:space:]]*\{'
- # Append "logging {"
- # Append " category lame-servers { null; };"
- # Append " category cname { null; };"
- # Append " category response-checks { null; };"
- # Append " category statistics { null; };"
- # Append "}"
- # EndGroup
- # WarnIfNoLineMatching '\<logging[[:space:]]*\{'
- # LocateLineMatching '\<logging[[:space:]]*\{'
- # AbortAtLineMatching '\}'
- # -> AppendIfNoLineMatching '\<category[[:blank:]]*lame-servers\>'
- # Append " category lame-servers { null; };"
- # EndGroup
- # BeginGroupIfNoLineMatching '\<category[[:blank:]]*cname\>'
- # Append " category cname { null; };"
- # EndGroup
- # BeginGroupIfNoLineMatching '\<category[[:blank:]]*response-checks\>'
- # Append " category response-checks { null; };"
- # EndGroup
- # BeginGroupIfNoLineMatching '\<category[[:blank:]]*statistics\>'
- # Append " category statistics { null; };"
- # EndGroup
- #
- 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)'
- EndGroup
- DefineClasses "bind_reload"
- EndGroup
- }
- shellcommands:
- bind_reload::
- "/etc/init.d/bind force-reload"
- "/etc/init.d/bind9 force-reload"
|