Forum: CFEngine Help Subject: Re: ?? custom 'compare' option in 'copy_from' ?? Author: mikesphar Link to topic: https://cfengine.com/forum/read.php?3,22890,22914#msg-22914
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 run that script as a module. Then have the file 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 and then have the copy rule iterate through that list. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine