summaryrefslogtreecommitdiff
path: root/sitemodules/profiles/templates/icinga2_agent/setup_agent.sh.epp
diff options
context:
space:
mode:
Diffstat (limited to 'sitemodules/profiles/templates/icinga2_agent/setup_agent.sh.epp')
-rw-r--r--sitemodules/profiles/templates/icinga2_agent/setup_agent.sh.epp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sitemodules/profiles/templates/icinga2_agent/setup_agent.sh.epp b/sitemodules/profiles/templates/icinga2_agent/setup_agent.sh.epp
index 20e2132..ad9d830 100644
--- a/sitemodules/profiles/templates/icinga2_agent/setup_agent.sh.epp
+++ b/sitemodules/profiles/templates/icinga2_agent/setup_agent.sh.epp
@@ -20,6 +20,6 @@ TICKET=$(/usr/bin/curl -f -s --cacert /etc/icinga2/pki/ca.crt \
--zone "<%= $::facts["fqdn"] %>" \
--parent_zone "<%= $master_host %>" \
--parent_host "<%= $master_host %>" \
---trustedcert "/etc/icinga2/pki/ca.crt" \
+--trustedcert "/var/lib/icinga2/certs/<%= $master_host %>.crt" \
--accept-commands \
--disable-confd