New certbot setup #23

Merged
greg merged 13 commits from feature/1-lets_encrypt into master 2019-03-18 16:24:00 +00:00
Showing only changes of commit fa27187f11 - Show all commits

View File

@ -7,14 +7,14 @@
# All rights reserved - Do Not Redistribute
#
git "/usr/local/certbot" do
repository "https://github.com/certbot/certbot"
action :sync
revision "v0.26.1"
user "root"
group "root"
# Install certbot and set up hooks
apt_repository "certbot" do
uri "ppa:certbot/certbot"
end
package "certbot"
letsencrypt_renew_hook = <<-EOF
#!/usr/bin/env bash
@ -55,5 +55,5 @@ cron "renew Let's Encrypt certificates" do
hour "4"
mailto "logs@5apps.com"
# The hook is only executed if a cert has been renewed
command "/usr/local/certbot/certbot-auto renew --deploy-hook letsencrypt_renew_hook -n 1> /dev/null"
command "/usr/bin/certbot renew --deploy-hook letsencrypt_renew_hook -n 1> /dev/null"
end