1
0
mirror of https://github.com/krislamo/puppet-acme_vault synced 2024-09-19 12:30:35 +00:00

create / set perms on cert_destination_path

This commit is contained in:
Bob Belnap 2018-02-27 12:28:28 -05:00
parent ca32b31595
commit a516ecf698

View File

@ -35,12 +35,20 @@ class acme_vault::deploy(
$restart_suffix = ""
}
# go through each domain, setup cron, and ensure the destination dir exists
$domains.each |$domain, $d_list| {
cron { "${domain}_deploy":
command => "${home_dir}/check_cert.sh ${domain} ${cert_destination_path} ${restart_suffix}",
user => $user,
weekday => 2,
}
file {"${cert_destination_path}/${domain}":
ensure => directory,
owner => $user,
group => $group,
mode => '0750',
}
}
}