On 04/03/2012 11:43 AM, no-re...@cfengine.com wrote:
> Forum: CFEngine Help
> Subject: Re: Trying to use regex to edit multiple files but CFengine 3.2.1 
> only edits one file. Why?
> Author: sauer
> Link to topic: https://cfengine.com/forum/read.php?3,25435,25452#msg-25452
> 
> Nick Anderson Wrote:
> -------------------------------------------------------
>>
>> I would say it seems like a bug.
> 
> It's not officially a bug (according to the resolution at 
> http://blog.cfengine.com/bugtracker/view.php?id=190&nbn=5), and this has been 
> discussed a few times ( 
> https://cfengine.com/forum/read.php?3,24906,24906#msg-24906 and 
> https://cfengine.com/forum/read.php?3,17747,24267#msg-24267).
> 
> I for one would, again, vote for the ability to have a 
> "remove_fileedit_training_wheels" parameter in the agent common control to 
> allow me to convergently apply edits to multiple files in one directory or 
> multiple directories. :)  As a Unix admin, I'm ok with tools which allow me 
> to shoot myself in the foot. ;)
> 
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> https://cfengine.org/mailman/listinfo/help-cfengine

Marks comment near 0000315 has an example that looks very similar to
Alekseys and the comment was that it works.

bundle agent action
{
files:

"/home/.*/testf.*"

  create => "true",
 edit_line => myedit;
}


bundle edit_line myedit
{
insert_lines:

  "one two three test";
}


I dont see the difference, I must be missing something.


-- 
Nick Anderson <n...@cmdln.org>
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to