summaryrefslogtreecommitdiff
path: root/sitemodules/profiles/templates
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2019-07-21 12:34:11 +0200
committerJan Dittberner <jandd@cacert.org>2019-07-21 12:34:11 +0200
commit3f0acb6f452091ba00bbb27dc85ebf5205c0e7de (patch)
treebebdb9f4bc6d5de1801161fc8738e6907d43c471 /sitemodules/profiles/templates
parent7adaa98e8cc8a31c2856cf2652c1467197b86ac0 (diff)
downloadcacert-puppet-3f0acb6f452091ba00bbb27dc85ebf5205c0e7de.tar.gz
cacert-puppet-3f0acb6f452091ba00bbb27dc85ebf5205c0e7de.tar.xz
cacert-puppet-3f0acb6f452091ba00bbb27dc85ebf5205c0e7de.zip
Add master key and certificates
icinga2 node setup on agents requires the master certificate, the CA certificate is not sufficient.
Diffstat (limited to 'sitemodules/profiles/templates')
-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