Update cookbooks

* Replace old nginx cookbook with new chef_nginx cookbooks
* Update application cookbook
This commit is contained in:
Greg Karékinian
2017-04-28 11:59:11 +02:00
parent 5d1d4832df
commit 4fb5390f9b
264 changed files with 3050 additions and 8605 deletions

View File

@@ -1,20 +0,0 @@
if defined?(ChefSpec)
# Custom ChefSpec matchers
module ChefSpec::Matchers
RSpec::Matchers.define :enable_nginx_site do |site|
match do |chef_run|
chef_run.resource_collection.all_resources.any? do |resource|
resource.resource_name == :execute && resource.name =~ /.*nxensite.*#{site}/
end
end
end
RSpec::Matchers.define :disable_nginx_site do |site|
match do |chef_run|
chef_run.resource_collection.all_resources.any? do |resource|
resource.resource_name == :execute && resource.name =~ /.*nxdissite.*#{site}/
end
end
end
end
end