From 21e8d3b8adbf8d1820a8ca532a7d8ae0a5588ea5 Mon Sep 17 00:00:00 2001 From: Fl0w Date: Fri, 29 Dec 2023 11:47:25 +0100 Subject: [PATCH 1/2] added missing quotes to ticket delegation --- roles/icinga2/tasks/features/api.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/icinga2/tasks/features/api.yml b/roles/icinga2/tasks/features/api.yml index 0767de69..e4c85da7 100644 --- a/roles/icinga2/tasks/features/api.yml +++ b/roles/icinga2/tasks/features/api.yml @@ -136,7 +136,7 @@ {% if icinga2_ca_host != 'none' %} --cert "{{ icinga2_cert_path }}/{{ icinga2_cert_name }}.crt" {% else %} --csr "{{ icinga2_cert_path }}/{{ icinga2_cert_name }}.csr" {%- endif %} - name: delegate ticket request to master - shell: icinga2 pki ticket --cn "{{ icinga2_cert_name }}{% if icinga2_ticket_salt is defined %} --salt {{ icinga2_ticket_salt }}{% endif %}" + shell: icinga2 pki ticket --cn "{{ icinga2_cert_name }}" {% if icinga2_ticket_salt is defined %} --salt "{{ icinga2_ticket_salt }}"{% endif %} delegate_to: "{{ icinga2_delegate_host | default(icinga2_ca_host) }}" register: icinga2_ticket when: icinga2_ca_host != 'none' From bf024ca46a6e2d2a5f369ec7f06b9b5dcd5a0fb6 Mon Sep 17 00:00:00 2001 From: Fl0w Date: Fri, 29 Dec 2023 15:17:00 +0000 Subject: [PATCH 2/2] added changelog fragment --- changelogs/fragments/fix_missing_quotes_delegate_ticket.yml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 changelogs/fragments/fix_missing_quotes_delegate_ticket.yml diff --git a/changelogs/fragments/fix_missing_quotes_delegate_ticket.yml b/changelogs/fragments/fix_missing_quotes_delegate_ticket.yml new file mode 100644 index 00000000..1951fdf9 --- /dev/null +++ b/changelogs/fragments/fix_missing_quotes_delegate_ticket.yml @@ -0,0 +1,3 @@ +--- +bugfixes: + - "icinga2 feature api: fixed missing quotes in delegate ticket command for satellites or second master nodes." \ No newline at end of file