From a516ecf698c131afae3388112caf504005d1c308 Mon Sep 17 00:00:00 2001 From: Bob Belnap Date: Tue, 27 Feb 2018 12:28:28 -0500 Subject: [PATCH] create / set perms on cert_destination_path --- manifests/deploy.pp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/manifests/deploy.pp b/manifests/deploy.pp index 89bbfa5..9fac1a0 100644 --- a/manifests/deploy.pp +++ b/manifests/deploy.pp @@ -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', + } } }