The nginx_certbot_site resource does nothing in the dev environment
No need to check for the environment in recipes that use the resource Closes #54
This commit is contained in:
1 parent
0a62f2d5e0
commit
5bb34554a7
3 files changed
+4
-2
No files matched your search
@@ -101,7 +101,7 @@ nginx_site server_name do
|
||||
action :enable
|
||||
end
|
||||
|
||||
nginx_certbot_site server_name unless node.chef_environment == "development"
|
||||
nginx_certbot_site server_name
|
||||
|
||||
#
|
||||
# Extensions
|
||||
|
||||
@@ -6,6 +6,8 @@ property :domain, String, name_property: true
|
||||
property :site, String
|
||||
|
||||
action :create do
|
||||
return if node.chef_environment == "development"
|
||||
|
||||
include_recipe "kosmos-nginx"
|
||||
|
||||
domain = new_resource.domain
|
||||
|
||||
@@ -43,4 +43,4 @@ nginx_site server_name do
|
||||
action :enable
|
||||
end
|
||||
|
||||
nginx_certbot_site server_name unless node.chef_environment == "development"
|
||||
nginx_certbot_site server_name
|
||||
Reference in new issue
Block a user