# # 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 restart" end