New certbot setup #23

Merged
greg merged 13 commits from feature/1-lets_encrypt into master 2019-03-18 16:24:00 +00:00
3 changed files with 7 additions and 7 deletions
Showing only changes of commit f12ddefec8 - Show all commits

View File

@ -34,13 +34,6 @@ file "/etc/letsencrypt/renewal-hooks/post/prosody" do
group "root"
end
gandi_api_data_bag_item = data_bag_item('credentials', 'gandi_api_5apps')
template "/root/letsencrypt_hook.sh" do
variables gandi_api_key: gandi_api_data_bag_item["key"]
mode 0770
end
# Generate a Let's Encrypt cert (only if no cert has been generated before).
# The renew cron will take care of renewing
execute "letsencrypt cert for 5apps xmpp" do

View File

@ -25,3 +25,10 @@ systemctl reload nginx
owner "root"
group "root"
end
gandi_api_data_bag_item = data_bag_item('credentials', 'gandi_api_5apps')
template "/root/gandi_dns_certbot_hook.sh" do
variables gandi_api_key: gandi_api_data_bag_item["key"]
mode 0770
end