Add missing Let's Encrypt recipe
Also declare cron job to renew certs Refs #6
This commit is contained in:
parent
0aaf3f3b55
commit
096b4900bd
22
site-cookbooks/kosmos-base/recipes/letsencrypt.rb
Normal file
22
site-cookbooks/kosmos-base/recipes/letsencrypt.rb
Normal 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
|
Loading…
x
Reference in New Issue
Block a user