Skip to content

Commit

Permalink
Merge pull request #250 from fl0wx/main
Browse files Browse the repository at this point in the history
added missing quotes to ticket delegation
  • Loading branch information
mocdaniel authored Dec 31, 2023
2 parents ff0fcfd + bf024ca commit 12c4ac1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelogs/fragments/fix_missing_quotes_delegate_ticket.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
bugfixes:
- "icinga2 feature api: fixed missing quotes in delegate ticket command for satellites or second master nodes."
2 changes: 1 addition & 1 deletion roles/icinga2/tasks/features/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 12c4ac1

Please sign in to comment.