summaryrefslogtreecommitdiff
path: root/sitemodules/profiles/templates
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2019-07-21 12:01:36 +0200
committerJan Dittberner <jandd@cacert.org>2019-07-21 12:01:36 +0200
commit7adaa98e8cc8a31c2856cf2652c1467197b86ac0 (patch)
tree1043d978e471c768930ac8e855a9383251032e16 /sitemodules/profiles/templates
parentb01109a8a8b7943d155c91fb5686b999b4fb1480 (diff)
downloadcacert-puppet-7adaa98e8cc8a31c2856cf2652c1467197b86ac0.tar.gz
cacert-puppet-7adaa98e8cc8a31c2856cf2652c1467197b86ac0.tar.xz
cacert-puppet-7adaa98e8cc8a31c2856cf2652c1467197b86ac0.zip
Prepare icinga2_agent installation on puppet
Diffstat (limited to 'sitemodules/profiles/templates')
-rw-r--r--sitemodules/profiles/templates/icinga2_agent/setup_agent.sh.epp4
1 files changed, 1 insertions, 3 deletions
diff --git a/sitemodules/profiles/templates/icinga2_agent/setup_agent.sh.epp b/sitemodules/profiles/templates/icinga2_agent/setup_agent.sh.epp
index c4aef81..20e2132 100644
--- a/sitemodules/profiles/templates/icinga2_agent/setup_agent.sh.epp
+++ b/sitemodules/profiles/templates/icinga2_agent/setup_agent.sh.epp
@@ -1,7 +1,6 @@
<%-| String $pki_api_user,
String $pki_api_password,
String $master_host,
- String $master_ip
|-%>
#!/bin/sh
@@ -10,7 +9,6 @@ set -e
TICKET=$(/usr/bin/curl -f -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"] %>" }' | \
/usr/bin/python3 -c \
@@ -18,7 +16,7 @@ TICKET=$(/usr/bin/curl -f -s --cacert /etc/icinga2/pki/ca.crt \
/usr/sbin/icinga2 node setup --ticket "${TICKET}" \
--cn "<%= $::facts["fqdn"] %>" \
---endpoint "<%= $master_host %>,<%= $master_ip %>,5665" \
+--endpoint "<%= $master_host %>" \
--zone "<%= $::facts["fqdn"] %>" \
--parent_zone "<%= $master_host %>" \
--parent_host "<%= $master_host %>" \