summaryrefslogtreecommitdiff
path: root/sitemodules/profiles/templates
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2019-07-20 20:36:32 +0200
committerJan Dittberner <jandd@cacert.org>2019-07-20 20:36:32 +0200
commit0af14ee4e9d236f50e6682ac1abfa6d6ac87c471 (patch)
tree524790ef4d40f8b0437dd3f9653983ef26d378ac /sitemodules/profiles/templates
parent1fff654ff96ce0b0ebef22d8c6dd48180316a932 (diff)
downloadcacert-puppet-0af14ee4e9d236f50e6682ac1abfa6d6ac87c471.tar.gz
cacert-puppet-0af14ee4e9d236f50e6682ac1abfa6d6ac87c471.tar.xz
cacert-puppet-0af14ee4e9d236f50e6682ac1abfa6d6ac87c471.zip
Qualify paths in scripts
Diffstat (limited to 'sitemodules/profiles/templates')
-rw-r--r--sitemodules/profiles/templates/icinga2_agent/setup_agent.sh.epp9
1 files changed, 7 insertions, 2 deletions
diff --git a/sitemodules/profiles/templates/icinga2_agent/setup_agent.sh.epp b/sitemodules/profiles/templates/icinga2_agent/setup_agent.sh.epp
index e6249a7..a0fd034 100644
--- a/sitemodules/profiles/templates/icinga2_agent/setup_agent.sh.epp
+++ b/sitemodules/profiles/templates/icinga2_agent/setup_agent.sh.epp
@@ -5,9 +5,14 @@
|-%>
#!/bin/sh
-TICKET=$(curl -s --cacert /etc/icinga2/pki/ca.crt -u "<%= $pki_api_user %>:<%= $pki_api_password %>" -H "Accept: application/json" --resolve "<%= $master_host %>:5665:<%= $master_ip %>" "https://<%= $master_host %>:5665/v1/actions/generate_ticket" --data '{ "cn": "<%= $::facts["fqdn"] %>" }')
+TICKET=$(/usr/bin/curl -s --cacert /etc/icinga2/pki/ca.crt \
+ -u "<%= $pki_api_user %>:<%= $pki_api_password %>" \
+ -H "Accept: application/json" \
+ --resolve "<%= $master_host %>:5665:<%= $master_ip %>" \
+ "https://<%= $master_host %>:5665/v1/actions/generate_ticket" \
+ --data '{ "cn": "<%= $::facts["fqdn"] %>" }')
-icinga2 node setup --ticket "${TICKET}" \
+/usr/sbin/icinga2 node setup --ticket "${TICKET}" \
--cn "<%= $::facts["fqdn"] %>" \
--endpoint "<%= $master_host %>,<%= $master_ip %>,5665" \
--zone "<%= $::facts["fqdn"] %>" \