control: AddInstallable = ( bind_reload ) editfiles: # { /etc/bind/named.conf # # TODO... # BeginGroupIfNoLineContaining "logging " # BeginGroupIfNoLineMatching '\ AppendIfNoLineMatching '\' # Append " category lame-servers { null; };" # EndGroup # BeginGroupIfNoLineMatching '\' # Append " category cname { null; };" # EndGroup # BeginGroupIfNoLineMatching '\' # Append " category response-checks { null; };" # EndGroup # BeginGroupIfNoLineMatching '\' # 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"