From 558f5bea02f199920423a7fccf8bce6e9b73f249 Mon Sep 17 00:00:00 2001 From: anima Date: Sun, 2 Feb 2025 20:45:07 +0100 Subject: [PATCH] add jq pipe to get ticket --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 39fce39..07d13e3 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ Set ICINGA2_API_USER_SATELLITE_PASS to get a API user for ticket generation (onl Then you can use this: ``` curl -k -s -u pki-ticket:$ICINGA2_API_USER_SATELLITE_PASS -H 'Accept: application/json' \ - -X POST 'https://ip-of-icinga2:5665/v1/actions/generate-ticket' -d '{ "cn": "satellite.example.com" }' + -X POST 'https://ip-of-icinga2:5665/v1/actions/generate-ticket' -d '{ "cn": "satellite.example.com" }' | jq '.results[0].ticket' ``` see: [CSR Auto-Signing: On the master](https://icinga.com/docs/icinga-2/latest/doc/06-distributed-monitoring/#csr-auto-signing-on-the-master)