summaryrefslogtreecommitdiff
path: root/sitemodules
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2019-07-21 15:44:31 +0200
committerJan Dittberner <jandd@cacert.org>2019-07-21 15:44:31 +0200
commit17f41999788bb01896f6af0fb5ca48d10f4b8ab0 (patch)
treeda00b5572164c207675e9e144ebc45f83d5451d6 /sitemodules
parent32f839abf2d5bf5488107c78662d9f70e493bb8d (diff)
downloadcacert-puppet-17f41999788bb01896f6af0fb5ca48d10f4b8ab0.tar.gz
cacert-puppet-17f41999788bb01896f6af0fb5ca48d10f4b8ab0.tar.xz
cacert-puppet-17f41999788bb01896f6af0fb5ca48d10f4b8ab0.zip
Make sure that the CA directory exists
Diffstat (limited to 'sitemodules')
-rw-r--r--sitemodules/profiles/manifests/icinga2_master.pp6
1 files changed, 6 insertions, 0 deletions
diff --git a/sitemodules/profiles/manifests/icinga2_master.pp b/sitemodules/profiles/manifests/icinga2_master.pp
index ae1f18b..847272a 100644
--- a/sitemodules/profiles/manifests/icinga2_master.pp
+++ b/sitemodules/profiles/manifests/icinga2_master.pp
@@ -55,6 +55,12 @@ class profiles::icinga2_master (
},
}
+ file { $::icinga2::globals::ca_dir:
+ ensure => directory,
+ owner => 'nagios',
+ group => 'nagios',
+ mode => '0755',
+ } ->
class { '::icinga2::pki::ca':
ca_cert => $ca_certificate,
ca_key => $ca_key,