Skip to content

Commit 12c4ac1

Browse files
authored
Merge pull request #250 from fl0wx/main
added missing quotes to ticket delegation
2 parents ff0fcfd + bf024ca commit 12c4ac1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
bugfixes:
3+
- "icinga2 feature api: fixed missing quotes in delegate ticket command for satellites or second master nodes."

roles/icinga2/tasks/features/api.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
{% if icinga2_ca_host != 'none' %} --cert "{{ icinga2_cert_path }}/{{ icinga2_cert_name }}.crt" {% else %} --csr "{{ icinga2_cert_path }}/{{ icinga2_cert_name }}.csr" {%- endif %}
137137
138138
- name: delegate ticket request to master
139-
shell: icinga2 pki ticket --cn "{{ icinga2_cert_name }}{% if icinga2_ticket_salt is defined %} --salt {{ icinga2_ticket_salt }}{% endif %}"
139+
shell: icinga2 pki ticket --cn "{{ icinga2_cert_name }}" {% if icinga2_ticket_salt is defined %} --salt "{{ icinga2_ticket_salt }}"{% endif %}
140140
delegate_to: "{{ icinga2_delegate_host | default(icinga2_ca_host) }}"
141141
register: icinga2_ticket
142142
when: icinga2_ca_host != 'none'

0 commit comments

Comments
 (0)