Forum: Cfengine Help
Subject: Re: Command execution for each copied file
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,17932,17936#msg-17936
It seems like the class definition won't help much. You can declare smth like
files:
"/etc/foobar/"
copy_from => rcp_if("/srv/cfengine-source/etc/foobar/"),
depth_search => recurse("inf"),
action => immediate,
classes => if_repaired("$(this.promiser)_changed");
}
but you can't use those classes further on if the file list is indetermined.
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine