Use the latest certbot instead of the old letsencrypt

This commit is contained in:
Greg Karékinian
2017-03-19 20:05:09 +00:00
parent 3ef2b8e5d5
commit 9436284be2
5 changed files with 38 additions and 11 deletions

View File

@@ -64,8 +64,8 @@ include_recipe "kosmos-nginx"
include_recipe "wordpress::app"
execute "letsencrypt cert for blog.kosmos.org" do
command "./letsencrypt-auto certonly --webroot --agree-tos --email ops@5apps.com --webroot-path #{node['wordpress']['dir']} -d blog.kosmos.org"
cwd "/usr/local/letsencrypt"
command "./certbot-auto certonly --webroot --agree-tos --email ops@5apps.com --webroot-path #{node['wordpress']['dir']} -d blog.kosmos.org -n"
cwd "/usr/local/certbot"
not_if { File.exist? "/etc/letsencrypt/live/blog.kosmos.org/fullchain.pem" }
notifies :reload, "service[nginx]", :delayed
end