T3171 Added capibility to query templates with puppetEnvironment and uqlitystage information