... | ... | @@ -778,9 +778,9 @@ As a bonus, this query will show the number of hosts running each release: |
|
|
|
|
|
curl -s -G http://localhost:8080/pdb/query/v4 --data-urlencode 'query=inventory[certname] { resources { type = "Class" and title = "Roles::Static_mirror" }} ' | jq -r .[].certname
|
|
|
|
|
|
This will show all hosts running Debian buster:
|
|
|
This will show all hosts running Debian bookworm:
|
|
|
|
|
|
curl -s -G http://localhost:8080/pdb/query/v4 --data-urlencode 'query=nodes { facts { name = "lsbdistcodename" and value = "buster" }}' | jq -r .[].certname
|
|
|
curl -s -G http://localhost:8080/pdb/query/v4 --data-urlencode 'query=nodes { facts { name = "lsbdistcodename" and value = "bookworm" }}' | jq -r .[].certname
|
|
|
|
|
|
* Using [howto/cumin](howto/cumin)
|
|
|
|
... | ... | |