[Puppet Users] Need help with AST Query

2019-04-24 Thread Valayil Abraham
I dont have access to the Postgres database so I have to use AST Query language and am struggling with how to get trusted facts pp_project (puppet_product) and pp_department (product) given certain values of trusteds fact pp_role (avrt) and pp_apptier (qa). "pp_role" : "avrt", "pp_apptier" : "q

[Puppet Users] Variable in AST query?

2019-04-24 Thread Valayil Abraham
I would like to pass a variable into an AST query in my powershell script. eg. in the query below I would like to use $role instead of "avrt". Is it possible? Getting an error when I tired it. $trusted_facts = @{ query = '["from", "facts", ["and", ["=", "name", "trusted"], ["subquery