summaryrefslogtreecommitdiff
path: root/sitemodules
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2019-07-21 16:00:14 +0200
committerJan Dittberner <jandd@cacert.org>2019-07-21 16:00:14 +0200
commita6f98d12beff0c2204cbb838c68020fcd8f0e950 (patch)
tree56bdc18231c3be309ea032e6eccd65f6b8fe7946 /sitemodules
parent17f41999788bb01896f6af0fb5ca48d10f4b8ab0 (diff)
downloadcacert-puppet-a6f98d12beff0c2204cbb838c68020fcd8f0e950.tar.gz
cacert-puppet-a6f98d12beff0c2204cbb838c68020fcd8f0e950.tar.xz
cacert-puppet-a6f98d12beff0c2204cbb838c68020fcd8f0e950.zip
Setup API endpoint with existing certificate
Diffstat (limited to 'sitemodules')
-rw-r--r--sitemodules/profiles/manifests/icinga2_master.pp14
1 files changed, 4 insertions, 10 deletions
diff --git a/sitemodules/profiles/manifests/icinga2_master.pp b/sitemodules/profiles/manifests/icinga2_master.pp
index 847272a..274e3a8 100644
--- a/sitemodules/profiles/manifests/icinga2_master.pp
+++ b/sitemodules/profiles/manifests/icinga2_master.pp
@@ -80,16 +80,10 @@ class profiles::icinga2_master (
}
class { '::icinga2::feature::api':
- pki => 'icinga2',
- ticket_salt => $pki_ticket_salt,
- endpoints => {
- $::fqdn => {},
- },
- zones => {
- $::fqdn => {
- 'endpoints' => [$::fqdn],
- },
- },
+ pki => 'none',
+ ssl_cacert => $ca_certificate,
+ ssl_key => $master_key,
+ ssl_cert => $::profiles::icinga2_common::master_certificate,
}
icinga2::object::zone { 'global-templates':