diff options
author | Jesse Luehrs <doy@tozt.net> | 2018-10-14 16:26:34 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2018-10-14 16:26:34 -0400 |
commit | e3d4e2e7bf93356fafaff2398cec60d65d6b3873 (patch) | |
tree | 8fee7d4fec52f6f496769a46c5f5f039abbc98a5 /modules/certbot/manifests/init.pp | |
parent | fc7014a8ffea45ef85a50f2dedf429393f6a643e (diff) | |
download | puppet-tozt-e3d4e2e7bf93356fafaff2398cec60d65d6b3873.tar.gz puppet-tozt-e3d4e2e7bf93356fafaff2398cec60d65d6b3873.zip |
try to fix initial certbot provisioning
Diffstat (limited to 'modules/certbot/manifests/init.pp')
-rw-r--r-- | modules/certbot/manifests/init.pp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/certbot/manifests/init.pp b/modules/certbot/manifests/init.pp index e0e78ab..27d59a6 100644 --- a/modules/certbot/manifests/init.pp +++ b/modules/certbot/manifests/init.pp @@ -1,11 +1,9 @@ class certbot($config_dir=undef) { if $config_dir { $_config_dir = $config_dir - $config_dir_opts = " --config-dir ${config_dir}" } else { $_config_dir = "/etc/letsencrypt" - $config_dir_opts = "" } include cron @@ -36,17 +34,21 @@ class certbot($config_dir=undef) { "${_config_dir}/renewal-hooks/deploy/reload-cert": source => 'puppet:///modules/certbot/reload-cert', require => File["${_config_dir}/renewal-hooks/deploy"]; + "/usr/local/bin/bootstrap-certbot": + source => 'puppet:///modules/certbot/bootstrap-certbot', + mode => '0755'; } exec { "initial certbot run": - # XXX update to real domain name - command => "/usr/bin/certbot -n --agree-tos -m doy@tozt.net --nginx -d new.tozt.net${config_dir_opts}", + provider => shell, + command => "/usr/local/bin/bootstrap-certbot ${config_dir}", creates => "${_config_dir}/live", require => [ Package["certbot"], # not Class["nginx"], because of circular dependencies with nginx::site Package["nginx"], Package["certbot-nginx"], + File['/usr/local/bin/bootstrap-certbot'], ], } } |