aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/cert.pp12
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],
+ ],
}
}