On 6/9/11 2:05 PM, no-re...@cfengine.com wrote: The end goal is, for example, installing a large list of packages. The the promise that installs the package then sets a certain class which contains the package name. (something like: promise_repaired => {"installed_$(this.promiser)"} )
After that I would like to know what servers needed what software installed, so I'd like reporting on what was done. Instead of blindly listing all possible classes in the reports section I would like to wild card this somehow *and* output what specific class it matched so that I know what happened. something like: reports: installed_(.*):: # put the .* in $1 "$1 was installed"; # $1 would interpolate to "somerpm" Which would be much more elegant then having a reports section that looks like this: reports: installed_somerpm:: "installed installed_somerpm"; installed_someotherrpm:: "installed someotherrpm"; installed_foo:: "etc..."; installed_etc:: "etc etc etc"; <imagine another 100 lines here...> -- 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