Forum: CFEngine Help
Subject: Re: ifvarclass for files:
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,22789,22790#msg-22790
Do you have the class yes_tripwire defined as well? The whole "/bin" block is
conditioned to it, in addition to the condition to "cftest" from the
"ifvarclass" part. If only cftest is defined, then it will not execute.
I personally find it confusing to have a block depend on both a class
expression and an ifvarclass. I'd rather write it like this:
files:
cftest.yes_tripwire::
"/bin"
changes => detect_filesystem_changes,
depth_search => etc_tripwire_ignores("inf"),
file_select => ex_list(@(files_to_ignore));
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine