Create parent for CRLs directory if it is missing
authorJan Dittberner <jandd@cacert.org>
Sun, 15 Apr 2018 10:00:06 +0000 (12:00 +0200)
committerJan Dittberner <jandd@cacert.org>
Sun, 15 Apr 2018 10:00:06 +0000 (12:00 +0200)
sitemodules/profiles/manifests/base.pp

index 48afaac..ea3855f 100644 (file)
@@ -184,13 +184,21 @@ class profiles::base (
     ensure => installed,
   }
 
-  file { '/var/local/ssl/crls':
+  file { '/var/local/ssl':
     ensure => directory,
     owner  => 'root',
     group  => 'root',
     mode   => '0755',
   }
 
+  file { '/var/local/ssl/crls':
+    ensure  => directory,
+    owner   => 'root',
+    group   => 'root',
+    mode    => '0755',
+    require => File['/var/local/ssl'],
+  }
+
   file { '/etc/cron.hourly/update-crls':
     ensure  => file,
     owner   => 'root',