blob: 0fe76de597c0bc436752295919e105ec29bebd01 (
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
- #
- # }
- # { /etc/bind/named.conf
- # BeginGroupIfFileExists "/etc/local-COMMON/bind/named_$(fqhost).conf"
- # BeginGroupIfNoLineMatching '^include[[:blank:]]"/etc/local-COMMON/bind/named_$(fqhost).conf";.*'
- # Append '// BEGIN EDITED BY CFENGINE $(date)'
- # Append 'include "/etc/local-COMMON/bind/named_$(fqhost).conf";'
- # Append '// END EDITED BY CFENGINE $(date)'
- # EndGroup
- # DefineClasses "bind_reload"
- # EndGroup
- # }
- shellcommands:
- bind_reload::
- "/etc/init.d/bind force-reload"
- "/etc/init.d/bind9 force-reload"
|