From e24cd0128784fa4a232bdacabe6292591e0a4a57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Kar=C3=A9kinian?= Date: Wed, 4 Dec 2019 17:33:13 +0100 Subject: [PATCH] Add an empty template because the nginx_certbot_site resource needs one --- site-cookbooks/kosmos-dirsrv/resources/instance.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/site-cookbooks/kosmos-dirsrv/resources/instance.rb b/site-cookbooks/kosmos-dirsrv/resources/instance.rb index 03a6da3..92d17a8 100644 --- a/site-cookbooks/kosmos-dirsrv/resources/instance.rb +++ b/site-cookbooks/kosmos-dirsrv/resources/instance.rb @@ -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