Re: [Puppet Users] using generated query string in a collector

2016-04-11 Thread Felix Frank
On 04/04/2016 02:24 PM, Johan De Wit wrote: I already I'm a big fan of iteration, but this needs to work on puppet 3.[7|8].x Well, there is always "old style pseudo-iteration". define collect_my_stuff() { My_exp_res<<| tag == $name |>> } class X($collect_tags) { collect_my_stuff {

[Puppet Users] using generated query string in a collector

2016-04-04 Thread Johan De Wit
Hi, Seems it is not possible, well, I cannot make it work. Depending on some class parameter, some exported resources should be collected or not. eg. class X ( $collect_tags = ['cond1', 'cond2'] ) { $my_cond = my_magic_function($collect_tags) # returns the string "tag == 'cond1' or