diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-01-14 23:27:34 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-01-15 00:03:47 +0100 |
commit | 44bdf71f6262ab8923d5b78097a05b669275acf7 (patch) | |
tree | d83117864dd8f6d65a4a658033d33b0353b30908 /manifests | |
parent | Change letsencrypt::domain to ensure_resource. (diff) | |
download | hugonikanor-letsencrypt-44bdf71f6262ab8923d5b78097a05b669275acf7.tar.gz hugonikanor-letsencrypt-44bdf71f6262ab8923d5b78097a05b669275acf7.tar.xz |
Exec require files.
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/cert.pp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/manifests/cert.pp b/manifests/cert.pp index c6e8ed4..9a34725 100644 --- a/manifests/cert.pp +++ b/manifests/cert.pp @@ -64,13 +64,21 @@ define letsencrypt::cert ( exec { "letsencrypt - get initial ${cert_name}": creates => "${letsencrypt::cert_dir}/${cert_name}", command => [$letsencrypt::renew::setup::renew_script, $cert_name], - require => File[$letsencrypt::renew::setup::renew_script], + require => [ + Concat[$domain_file], + File[$conf_file], + File[$letsencrypt::renew::setup::renew_script], + ], } exec { "letsencrypt - refresh ${cert_name}": command => [$letsencrypt::renew::setup::renew_script, $cert_name], subscribe => [File[$conf_file], Concat[$domain_file]], refreshonly => true, - require => File[$letsencrypt::renew::setup::renew_script], + require => [ + Concat[$domain_file], + File[$conf_file], + File[$letsencrypt::renew::setup::renew_script], + ], } } |