X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/d1b835abf6c54e768ead54dd0056011554ba0b71..a7de9e4abe76f8cd647eea949f99687fcc19254c:/cookbooks/letsencrypt/recipes/default.rb diff --git a/cookbooks/letsencrypt/recipes/default.rb b/cookbooks/letsencrypt/recipes/default.rb index 3590fc94d..a327119bf 100644 --- a/cookbooks/letsencrypt/recipes/default.rb +++ b/cookbooks/letsencrypt/recipes/default.rb @@ -148,7 +148,7 @@ certificates.each do |name, details| user "letsencrypt" group "letsencrypt" subscribes :run, "template[/srv/acme.openstreetmap.org/requests/#{name}]" - not_if { ENV["TEST_KITCHEN"] } + not_if { kitchen? } end end @@ -190,3 +190,10 @@ cron_d "letencrypt-check" do command "/srv/acme.openstreetmap.org/bin/check-certificates" mailto "admins@openstreetmap.org" end + +template "/etc/logrotate.d/letsencrypt" do + source "logrotate.erb" + owner "root" + group "root" + mode "644" +end