help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting variables with editfiles


From: Mark Burgess
Subject: Setting variables with editfiles
Date: Fri, 28 Oct 2005 12:58:00 +0200

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"
  }






reply via email to

[Prev in Thread] Current Thread [Next in Thread]