1
0
mirror of https://github.com/krislamo/puppet-acme_vault synced 2024-09-19 20:40:36 +00:00

cron time fixes, sourcing

This commit is contained in:
Bob Belnap 2018-03-05 13:23:44 -05:00
parent 7a93cba305
commit d390851665
3 changed files with 9 additions and 1 deletions

View File

@ -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,
}
}

View File

@ -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}":

View File

@ -94,6 +94,8 @@ END
command => "${home_dir}/${domain}.sh",
user => $user,
weekday => 1,
hour => 11,
minute => 28,
}
}