hello, I am trying to selectively find classes using PQL that has a certain parameter.
class foo($server=true) { } So with PQL I have no idea how to match only foo classes where server = true, it appears from errors that it does support search parameters but nothing in the docs and I can't figure it out. So then I tried to query via tags which does work, I figured I'll ta the class using tag(): class foo($server=true) { if $server { tag("foo_server") } if tagged("foo_server") { notify{"it's tagged": } } } this code runs, and the notify fires, however if I query puppet db using a simple resources {type = "Class" and title = "Foo"} the tag set with the function does not appear on the class. So back to not having anyway to find nodes where foo::server = true, any ideas? --- R.I.Pienaar -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/994494591.394148.1470002741906.JavaMail.zimbra%40devco.net. For more options, visit https://groups.google.com/d/optout.