include_recipe "accounts"
include_recipe "apache"
+include_recipe "chef::knife"
keys = data_bag_item("chef", "keys")
mode "755"
files_owner "root"
files_group "root"
- files_mode 0o755
+ files_mode "755"
end
directory "/srv/acme.openstreetmap.org/requests" do
user "letsencrypt"
group "letsencrypt"
subscribes :run, "template[/srv/acme.openstreetmap.org/requests/#{name}]"
- not_if { ENV["TEST_KITCHEN"] }
+ not_if { kitchen? }
end
end
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