summaryrefslogtreecommitdiff
path: root/sitemodules/profiles/templates
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2019-07-21 13:38:55 +0200
committerJan Dittberner <jandd@cacert.org>2019-07-21 13:38:55 +0200
commit3779b45a134f2fbc10280a86141813e9f3287122 (patch)
tree53b866197d9b0d5fda2b05899cff8da4afeccfe1 /sitemodules/profiles/templates
parent35771b450fcb2e03e38e8f5cb1c60602a855e5d9 (diff)
downloadcacert-puppet-3779b45a134f2fbc10280a86141813e9f3287122.tar.gz
cacert-puppet-3779b45a134f2fbc10280a86141813e9f3287122.tar.xz
cacert-puppet-3779b45a134f2fbc10280a86141813e9f3287122.zip
Fix path to CA certificate
Diffstat (limited to 'sitemodules/profiles/templates')
-rw-r--r--sitemodules/profiles/templates/icinga2_agent/setup_agent.sh.epp3
1 files changed, 2 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 ad9d830..2586bda 100644
--- a/sitemodules/profiles/templates/icinga2_agent/setup_agent.sh.epp
+++ b/sitemodules/profiles/templates/icinga2_agent/setup_agent.sh.epp
@@ -6,7 +6,8 @@
set -e
-TICKET=$(/usr/bin/curl -f -s --cacert /etc/icinga2/pki/ca.crt \
+TICKET=$(/usr/bin/curl -f -s \
+ --cacert /var/lib/icinga2/certs/ca.crt \
-u "<%= $pki_api_user %>:<%= $pki_api_password %>" \
-H "Accept: application/json" \
"https://<%= $master_host %>:5665/v1/actions/generate-ticket" \