Commit fe2da6f5 authored by Matthew Smith's avatar Matthew Smith
Browse files

Update main.yml

parent 71867798
......@@ -30,14 +30,16 @@
- name: Generate Icinga client certs.
command: >
icinga2 pki new-cert --cn {{ icinga_client_fqdn }} \
icinga2 pki new-cert \
--cn {{ icinga_client_fqdn }} \
--key {{ icinga_client_certs_path ~ icinga_client_fqdn }}.key \
--cert {{ icinga_client_certs_path ~ icinga_client_fqdn }}.crt
changed_when: false
- name: Get master trusted cert.
command: >
icinga2 pki save-cert --key {{ icinga_client_certs_path ~ icinga_client_fqdn }}.key \
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 }}
......@@ -45,9 +47,13 @@
- name: Setup Icinga client node.
command: >
icinga2 node setup --ticket {{ icinga_client_ticket.json }} \
--cn {{ icinga_client_fqdn }} --endpoint {{ icinga_master_endpoint }} \
--zone {{ icinga_client_zone }} --master_host {{ icinga_master_fqdn }} \
icinga2 node setup
--ticket {{ icinga_client_ticket.json }} \
--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-master.crt \
--accept-commands --accept-config
changed_when: false
......
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