From f21e2313476affe47d7900a19dc03ed798c3473d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Charaoui?= <jerome@riseup.net> Date: Mon, 15 Apr 2024 23:01:49 -0400 Subject: [PATCH] quote jq filter properly --- howto/puppet.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/howto/puppet.md b/howto/puppet.md index 6f13c952..aed334e9 100644 --- a/howto/puppet.md +++ b/howto/puppet.md @@ -772,7 +772,7 @@ The currently known values are: `kvm`, `physical`, and `xenu`. This will list all hosts with the `roles::static_mirror` class: - 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 + 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 bookworm: -- GitLab