help-cfengine
[Top][All Lists]
Advanced

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

Re: Need 'UncommentAndSetValue' or some such


From: Alexander Jolk
Subject: Re: Need 'UncommentAndSetValue' or some such
Date: Thu, 27 Oct 2005 12:31:59 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050831 Debian/1.7.8-1sarge2

Christopher Browne wrote:
I'd *love* to have something that would say something like...

  AssignField LHS="com.foo.bar.jdbc.url"
              RHS="pgsql:$(dbhost):$(dbport):$(dbuser)"
              separator="="

Did someone consider code along the lines of
SplitOn = ( = )
SetLine "com.foo.bar.jdbc.url=pgsql:somehost:5432:user"
ReplaceLinesMatchingField "1"
?

Alex

--
Alexander Jolk  * BUF Compagnie * alexj@buf.com
Tel +33-1 42 68 18 28  *  Fax +33-1 42 68 18 29




reply via email to

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