CFEngine Help: Re: CFEngine Help: Matching files and replacing files with regex

2012-04-01 Thread no-reply
Forum: CFEngine Help Subject: Re: CFEngine Help: Matching files and replacing files with regex Author: Devastator101 Link to topic: https://cfengine.com/forum/read.php?3,25431,25433#msg-25433 Hi Charles, Thanks for the reply. Your code works with a little modification. Below is the final code

Re: CFEngine Help: Matching files and replacing files with regex

2012-04-01 Thread Nicolas Charles
Hi, You are over-engineering your solution, this will achieve the same result : files: "/etc/application/" perms => system("0644","root","root"), copy_from => mycopy( "/my/repository/config/files/", "servername" ), file_select => by_name("*.conf"), depth_search => recurse

Re: CFEngine Help: Matching files and replacing files with regex

2012-03-31 Thread Aleksey Tsalolikhin
Hi, Devastator101. What is the difficulty you're having? Could you please post a complete self-contained policy? >From what you've posted, the "files:" promise type is missing, and so is the "mycopy" promise body. Best, -at On Fri, Mar 30, 2012 at 10:49 PM, wrote: > Forum: CFEngine Help > Sub