From 613b316588642d58dd4300c37bbf6ed08a78c73b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Kar=C3=A9kinian?= Date: Wed, 25 Nov 2020 16:33:54 +0100 Subject: [PATCH] Add comment about needing to run Chef a second time... ... after the TLS certs are generated --- site-cookbooks/kosmos-ejabberd/templates/vhost.yml.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/site-cookbooks/kosmos-ejabberd/templates/vhost.yml.erb b/site-cookbooks/kosmos-ejabberd/templates/vhost.yml.erb index eb6c943..77fe955 100644 --- a/site-cookbooks/kosmos-ejabberd/templates/vhost.yml.erb +++ b/site-cookbooks/kosmos-ejabberd/templates/vhost.yml.erb @@ -1,4 +1,6 @@ # Generated by Chef for <%= @host[:name] %> +# FIXME: The files only exist after the certbot hook created them, meaning +# we need to run Chef a second time <% if File.exist?("/opt/ejabberd/conf/#{@host[:name]}.crt") && File.exist?("/opt/ejabberd/conf/#{@host[:name]}.key") -%> certfiles: - "/opt/ejabberd/conf/<%= @host[:name] %>.crt"