Add an empty template because the nginx_certbot_site resource needs one

This commit is contained in:
Greg Karékinian 2019-12-04 17:33:13 +01:00
parent 632cb38aab
commit e24cd01287

View File

@ -81,6 +81,12 @@ action :create do
include_recipe "kosmos-nginx"
template "#{node['nginx']['dir']}/sites-available/#{new_resource.hostname}" do
source 'nginx_conf_empty.erb'
owner node["nginx"]["user"]
mode 0640
end
nginx_certbot_site new_resource.hostname do
notifies :run, "execute[generate p12 cert]", :immediately
end