Ensure parent directory for icinga2 certificates
authorJan Dittberner <jandd@cacert.org>
Sun, 4 Aug 2019 07:40:17 +0000 (09:40 +0200)
committerJan Dittberner <jandd@cacert.org>
Sun, 4 Aug 2019 07:40:17 +0000 (09:40 +0200)
sitemodules/profiles/manifests/icinga2_certificates.pp

index ab566d3..928a5a3 100644 (file)
@@ -32,7 +32,7 @@ class profiles::icinga2_certificates (
   Array[Hash[String, String]] $certificates = []
 ) {
   if $certificates.length > 0 {
-    file { ['/etc/icinga2/ssl/certs', '/etc/icinga2/ssl/keys']:
+    file { ['/etc/icinga2/ssl', '/etc/icinga2/ssl/certs', '/etc/icinga2/ssl/keys']:
       ensure  => directory,
       owner   => 'nagios',
       group   => 'nagios',