Le 11/02/2011 02:37, JIM AMANATIDIS, BLOOMBERG/ 731 LEXIN a écrit :
> 
> Still no luck on getting replace_patterns such as:
> 
>   replace_patterns:
>     "DUMPADM_SAVDIR=.*"   replace_with => 
> all("DUMPADM_SAVDIR=/var/crash/$(sys.host)");
>     "DUMPADM_CONTENT=.*"  replace_with => all("DUMPADM_CONTENT=kernel");
>     "DUMPADM_ENABLE=.*"   replace_with => all("DUMPADM_ENABLE=yes");
> 
> to work,

I encountered a similar annoyance, which I reported as bug #274. See the
link for the discussion:
https://cfengine.com/bugtracker/view.php?id=274

In the case given above, you could easily use Diego Zamboni's approach,
and treat each of your lines like a set of fields using "=" as a
delimiter. See his promise here:
https://cfengine.com/forum/read.php?3,19218,19272#msg-19272

Jonathan
-- 
==========================================
Jonathan CLARKE
------------------------------------------
Normation
44 rue Cauchy, 94110 Arcueil, France
------------------------------------------
Telephone:  +33 (0)1 83 62 41 24
Mobile:     +33 (0)6 99 60 03 10
------------------------------------------
Web:        http://www.normation.com/
==========================================
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to