Hi all, I'm trying to get some useful reporting done on classes that are set by promises in the files/commands sections. The trouble is that up front there is no telling which classes are being set (the promises that set the classes loop over huge lists).
Is there any way to do something like I've commented in the example code below? Thanks, Sjoerd. =========== body common control { bundlesequence => { "wiggle" }; } bundle agent wiggle { classes: "dynamic_found" or => { classmatch("foo_.*") }; vars: "stuff" slist => { "one", "two", "three", }; dynamic_found:: # function to extract part of a_ # classname into a var or list? # "myrepairs"_ # slist => { extractclasspart("foo_(.*)") }; commands: "/bin/echo $(stuff)" promise_repaired => {"foo_$(stuff)"}; reports: dynamic_found:: "dynamic_found"; # Loop over myrepairs list to_ # generate useful reports #"promise $(myrepairs) needed fixing"; } -- Sjoerd Oostdijck RIPE Network Coordination Centre RIPE NCC, IT Department Singel 258, Amsterdam, NL http://www.ripe.net +31 20 535 4444 _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine