diff --git a/manifests/query_objects.pp b/manifests/query_objects.pp index 7ca61f26..e849b747 100644 --- a/manifests/query_objects.pp +++ b/manifests/query_objects.pp @@ -25,7 +25,7 @@ } # default } - $pql_query = puppetdb_query("resources[parameters] { environment in ['${_environments}'] and type = 'Icinga2::Object' and exported = true and tag = 'icinga2::instance::${destination}' and nodes { deactivated is null and expired is null } order by certname }") + $pql_query = puppetdb_query("resources[parameters] { environment in ['${_environments}'] and type = 'Icinga2::Object' and exported = true and tag = 'icinga2::instance::${destination}' and nodes { deactivated is null and expired is null } order by certname, title }") $file_list = $pql_query.map |$object| { $object['parameters']['target']