Add missing Let's Encrypt recipe

Also declare cron job to renew certs

Refs #6
This commit is contained in:
Greg Karékinian 2016-05-06 17:02:41 +02:00
parent 0aaf3f3b55
commit 096b4900bd

View File

@ -0,0 +1,22 @@
#
# 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