From 576f8e33ff7c5e7b8f563289748f9b37840c6416 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 16 Jun 2016 19:09:19 -0300 Subject: Enhance certbot --- manifests/certbot.pp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'manifests/certbot.pp') diff --git a/manifests/certbot.pp b/manifests/certbot.pp index e024b32..07ea20d 100644 --- a/manifests/certbot.pp +++ b/manifests/certbot.pp @@ -14,6 +14,7 @@ define nginx::certbot( } exec { "certbot-${name}": - command => "/usr/bin/certbot certonly --webroot -w /var/www/certbot/${name} -d ${name} -m ${email} --rsa-key-size ${size} --agree-tos", + 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}", } } -- cgit v1.2.3