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
Registration is now open for professional CFEngine 3 training,
May 14 - 17, in New York, NY.
Early bird rates ($2210 for 4 days of top-notch training) are offered
until 12 April 2012 (Cosmonauts' Day).
More info and registration at http://cfengine.eventbrite.com
WHAT STUDENTS SAY ABOUT ALEKSEY'
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