summaryrefslogtreecommitdiffstats
path: root/modules/certbot
diff options
context:
space:
mode:
Diffstat (limited to 'modules/certbot')
-rw-r--r--modules/certbot/manifests/init.pp8
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/certbot/manifests/init.pp b/modules/certbot/manifests/init.pp
index df1526c..c0db164 100644
--- a/modules/certbot/manifests/init.pp
+++ b/modules/certbot/manifests/init.pp
@@ -1,5 +1,6 @@
class certbot {
include cron
+ include nginx
package { 'certbot':
ensure => installed;
@@ -26,8 +27,11 @@ class certbot {
exec { "initial certbot run":
# XXX update to real domain name
- command => "/usr/bin/certbot certonly --webroot -w /home/doy/public_html -d new.tozt.net",
+ command => "/usr/bin/certbot --nginx -d new.tozt.net",
creates => "/etc/letsencrypt/live",
- require => Package["certbot"],
+ require => [
+ Package["certbot"],
+ Class["nginx"],
+ ],
}
}