diff --git a/manifests/common.pp b/manifests/common.pp index e9da295..48321da 100644 --- a/manifests/common.pp +++ b/manifests/common.pp @@ -70,14 +70,18 @@ END command => '/bin/true', user => $user, month => 7, + hour => 1, + minute => 29, environment => "MAILTO=${contact_email}", } # renew vault token cron { 'renew vault token': - command => "$vault_bin token-renew > /dev/null", + command => ". \$HOME/.bashrc && $vault_bin token-renew > /dev/null", user => $user, weekday => 1, + hour => 10, + minute => 17, } } diff --git a/manifests/deploy.pp b/manifests/deploy.pp index 766d252..3f6160e 100644 --- a/manifests/deploy.pp +++ b/manifests/deploy.pp @@ -44,6 +44,8 @@ class acme_vault::deploy( command => "${home_dir}/check_cert.sh ${domain} ${cert_destination_path} ${restart_suffix}", user => $user, weekday => 2, + hour => 11, + minute => 17, } file {"${cert_destination_path}/${domain}": diff --git a/manifests/request.pp b/manifests/request.pp index fea874d..64408f8 100644 --- a/manifests/request.pp +++ b/manifests/request.pp @@ -94,6 +94,8 @@ END command => "${home_dir}/${domain}.sh", user => $user, weekday => 1, + hour => 11, + minute => 28, } }