Only use certbot deploy hook when applicable
This commit is contained in:
parent
495a4231fb
commit
9d0ff358ef
@ -36,8 +36,8 @@ action :create do
|
|||||||
--agree-tos \
|
--agree-tos \
|
||||||
--manual-auth-hook '#{hook_path} auth' \
|
--manual-auth-hook '#{hook_path} auth' \
|
||||||
--manual-cleanup-hook '#{hook_path} cleanup' \
|
--manual-cleanup-hook '#{hook_path} cleanup' \
|
||||||
--deploy-hook /etc/letsencrypt/renewal-hooks/post/openresty \
|
|
||||||
--email ops@kosmos.org \
|
--email ops@kosmos.org \
|
||||||
|
#{node.run_list.roles.include?("openresty_proxy") ? '--deploy-hook /etc/letsencrypt/renewal-hooks/post/openresty' : nil } \
|
||||||
#{domains.map {|d| "-d #{d}" }.join(" ")}
|
#{domains.map {|d| "-d #{d}" }.join(" ")}
|
||||||
CMD
|
CMD
|
||||||
not_if do
|
not_if do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user