Permalink
Browse files

Merge pull request #10 from miketheman/COOK-1316

[COOK-1316] Added attribute for default site, added condition to commons...
  • Loading branch information...
2 parents 73eb194 + 5b5e9fe commit 2638b7bead7babdd9a75d598a57037b4cf3a82c9 @jtimberman jtimberman committed Jul 18, 2012
Showing with 7 additions and 1 deletion.
  1. +1 −0 README.md
  2. +1 −0 attributes/default.rb
  3. +4 −0 metadata.rb
  4. +1 −1 recipes/commons.rb
View
@@ -45,6 +45,7 @@ Generally used attributes. Some have platform specific values. See `attributes/d
* `node['nginx']['worker_connections']` - used for config value of `events { worker_connections }`
* `node['nginx']['server_names_hash_bucket_size']` - used for config value of `server_names_hash_bucket_size`.
* `node['nginx']['disable_access_log']` - set to true to disable the general access log, may be useful on high traffic sites.
+* `node['nginx']['default_site_enabled']` - enable the default site
### Attributes for configuring the gzip module
@@ -64,3 +64,4 @@
default['nginx']['disable_access_log'] = false
default['nginx']['install_method'] = 'package'
+default['nginx']['default_site_enabled'] = true
View
@@ -89,3 +89,7 @@
attribute "nginx/disable_access_log",
:display_name => "Disable Access Log",
:default => "false"
+
+attribute "nginx/default_site_enabled",
+ :display_name => "Default site enabled",
+ :default => "true"
View
@@ -62,4 +62,4 @@
mode 0644
end
-nginx_site 'default'
+nginx_site 'default' if node['nginx']['default_site_enabled']

0 comments on commit 2638b7b

Please sign in to comment.