Greg Karékinian 096b4900bd Add missing Let's Encrypt recipe
Also declare cron job to renew certs

Refs #6
2016-05-06 17:02:41 +02:00

23 lines
460 B
Ruby

#
# Cookbook Name:: kosmos-base
# Recipe:: letsencrypt
#
# Copyright 2016, Kosmos
#
# All rights reserved - Do Not Redistribute
#
git "/usr/local/letsencrypt" do
repository "https://github.com/letsencrypt/letsencrypt"
action :sync
revision "v0.5.0"
user "root"
group "root"
end
cron "renew Let's Encrypt certificates" do
minute "*"
hour "4"
command "/usr/local/letsencrypt/letsencrypt-auto renew && service nginx reload"
end