[COOK-1316] Added attribute for default site, added condition to commons... #10

Merged
merged 2 commits into from Jul 18, 2012
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']