I'm not as familiar with the v3 terminology (I'm still stuck on v2), but in v2 you could theoretically accomplish something like this with a custom module. Write a script that tests whatever condition you want to fix and have it output a custom class, like "+fix_file_foo" and have the copy rule only apply when that class is defined. If you have hundreds of files you want to monitor for fixes in this way that might become unwieldy, but it might be possible to make it a bit more efficient by having the module also define a variable list of files to fix.
-----Original Message----- From: help-cfengine-boun...@cfengine.org [mailto:help-cfengine-boun...@cfengine.org] On Behalf Of no-re...@cfengine.com Sent: Friday, July 22, 2011 2:23 PM To: help-cfengine@cfengine.org Subject: CFEngine Help: Re: ?? custom 'compare' option in 'copy_from' ?? Forum: CFEngine Help Subject: Re: ?? custom 'compare' option in 'copy_from' ?? Author: hartikka Link to topic: https://cfengine.com/forum/read.php?3,22890,22897#msg-22897 Hi Neil, It seems your recipe edits the file. I don't want to edit the file. I just want to compare source and image files in a special way to see if any any and all the differences are 'legal'. When the difference between source and image is legal I want to leave the image alone. When the difference between the source and image is not legal, I want to copy the source to the image. Ron _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine