Here is how I set variables in apache/postfix
editfiles:
{ /etc/sysconfig/apache2
BeginGroupIfNoLineMatching "APACHE_SERVER_FLAGS=\"SVN_VIEWCVS\""
ReplaceAll "APACHE_SERVER_FLAGS=\"\"" With "APACHE_SERVER_FLAGS=
\"SVN_VIEWCVS\""
EndGroup
BeginGroupIfNoLineMatching "APACHE_CONF_INCLUDE_FILES=
\"/iu/eternity/masterfiles/eternity-http.conf\""
ReplaceAll "APACHE_CONF_INCLUDE_FILES=\"\"" With
"APACHE_CONF_INCLUDE_FILES=\"/iu/eternity/masterfiles/eternity-http.conf
\""
EndGroup
BeginGroupIfNoLineMatching ".*php4 dav dav_svn.*"
ReplaceAll "php4" With "php4 dav dav_svn"
EndGroup
}
{ /etc/postfix/main.cf
ReplaceAll "^mydomain =.*" With "mydomain = iu.hio.no"
ReplaceAll "^relayhost =.*" With "relayhost = [nexus.iu.hio.no]"
AppendIfNoSuchLine "relayhost = [nexus.iu.hio.no]"
AppendIfNoSuchLine "mydomain = iu.hio.no"
}
_______________________________________________
Help-cfengine mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-cfengine