From 7bea1bc4e28405e2222aa84dc3dcf78d2dc210f8 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 10 Oct 2018 03:23:49 -0400 Subject: try just using the built-in nginx support --- modules/certbot/manifests/init.pp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'modules/certbot') 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"], + ], } } -- cgit v1.2.3-54-g00ecf