summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/certbot.pp1
1 files changed, 1 insertions, 0 deletions
diff --git a/manifests/certbot.pp b/manifests/certbot.pp
index ab67ad5..2eca1f9 100644
--- a/manifests/certbot.pp
+++ b/manifests/certbot.pp
@@ -16,5 +16,6 @@ define nginx::certbot(
exec { "certbot-${name}":
command => "/usr/bin/certbot certonly --webroot -w /var/www/certbot/${name} -d ${name} -d www.${name} -m ${email} --rsa-key-size ${size} --agree-tos",
creates => "/etc/letsencrypt/archive/${name}",
+ require => File["/var/www/certbot/${name}"],
}
}