Commit 272d72f1 authored by Oliver Lowe's avatar Oliver Lowe
Browse files

Use icinga_master_host to get master cert

Instead of assuming we can get it over DNS
parent 5ee64806
......@@ -37,14 +37,14 @@
icinga2 pki save-cert --key {{ icinga_client_certs_path ~ icinga_client_fqdn }}.key \
--cert {{ icinga_client_certs_path ~ icinga_client_fqdn }}.crt \
--trustedcert {{ icinga_client_certs_path }}trusted-master.crt \
--host {{ icinga_master_fqdn }}
--host {{ icinga_master_host }}
changed_when: false
- name: Setup Icinga client node.
command: >
icinga2 node setup \
--cn {{ icinga_client_fqdn }} --endpoint {{ icinga_master_endpoint }} \
--zone {{ icinga_client_fqdn }} --parent_host {{ icinga_master_fqdn }} \
--zone {{ icinga_client_fqdn }} --parent_host {{ icinga_master_host }} \
--trustedcert {{ icinga_client_certs_path }}trusted-master.crt \
--accept-commands --accept-config --disable-confd
changed_when: false
......
Supports Markdown
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