summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2018-04-15 12:00:06 +0200
committerJan Dittberner <jandd@cacert.org>2018-04-15 12:00:06 +0200
commit0895ed3353006b5909e6ec78079b6d1ac0dd59b3 (patch)
tree3a1e85e626389a781c6c88012191986cc25f05b8
parent0506e6e014994cd8dd89732921846b3d24688baa (diff)
downloadcacert-puppet-0895ed3353006b5909e6ec78079b6d1ac0dd59b3.tar.gz
cacert-puppet-0895ed3353006b5909e6ec78079b6d1ac0dd59b3.tar.xz
cacert-puppet-0895ed3353006b5909e6ec78079b6d1ac0dd59b3.zip
Create parent for CRLs directory if it is missing
-rw-r--r--sitemodules/profiles/manifests/base.pp10
1 files changed, 9 insertions, 1 deletions
diff --git a/sitemodules/profiles/manifests/base.pp b/sitemodules/profiles/manifests/base.pp
index 48afaac..ea3855f 100644
--- a/sitemodules/profiles/manifests/base.pp
+++ b/sitemodules/profiles/manifests/base.pp
@@ -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',