Commit 5e256a30 authored by matt's avatar matt
Browse files

add ticketless setup option

parent cd61cbbf
......@@ -40,6 +40,7 @@
- name: Icinga ticket
debug:
msg: "ticket: {{ icinga_client_ticket }}"
when: icinga_client_generate_ticket != "ticketless"
- name: Generate Icinga client certs (linux)
command: >
......@@ -73,6 +74,23 @@
--accept-config \
--disable-confd
changed_when: false
when: icinga_client_generate_ticket != "ticketless"
- name: Setup Icinga client node (linux)
command: >
icinga2 node setup
--cn "{{ icinga_client_fqdn }}" \
--zone "{{ icinga_client_zone }}" \
--endpoint "{{ icinga_parent_endpoint }}" \
--parent_host "{{ icinga_parent_fqdn }}" \
--parent_zone "{{ icinga_parent_zone }}" \
--trustedcert "{{ icinga_client_certs_path }}trusted-parent.crt" \
--accept-commands \
--accept-config \
--disable-confd
changed_when: false
when: icinga_client_generate_ticket == "ticketless"
- name: Ensure default 'conf.d' directory is not used (linux)
lineinfile:
......
......@@ -38,6 +38,7 @@
- name: Icinga ticket
debug:
msg: "ticket: {{ icinga_client_ticket }}"
when: icinga_client_generate_ticket != "ticketless"
- name: Generate Icinga client certs (win)
win_command: >
......@@ -80,6 +81,24 @@
args:
chdir: C:\Program Files\icinga2\sbin
changed_when: false
when: icinga_client_generate_ticket != "ticketless"
- name: Setup Icinga client node (win)
win_command: >
icinga2 node setup
--cn "{{ icinga_client_fqdn }}" \
--zone "{{ icinga_client_zone }}" \
--endpoint "{{ icinga_parent_endpoint }}" \
--parent_host "{{ icinga_parent_fqdn }}" \
--parent_zone "{{ icinga_parent_zone }}" \
--trustedcert "{{ icinga_client_win_certs_path }}trusted-parent.crt" \
--accept-commands \
--accept-config \
--disable-confd
args:
chdir: C:\Program Files\icinga2\sbin
changed_when: false
when: icinga_client_generate_ticket == "ticketless"
# TODO: IDK why we don't include this, it is important
#- name: Ensure default 'conf.d' directory is not used (win)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment