[chef] Re: NGINX -- default_site_enabled issue


Chronological Thread 
  • From: Nic Grayson < >
  • To:
  • Cc: Opscode Support < >
  • Subject: [chef] Re: NGINX -- default_site_enabled issue
  • Date: Wed, 12 Jun 2013 10:04:53 -0500

The upstream nginx cookbook enables the default site. I just call the nginx_site definition on default to disable it.

nginx_site "default" do
  enable false
end

Nic


On Tue, Jun 11, 2013 at 4:52 PM, Liam Kirsher < " target="_blank"> > wrote:
Hi --

I'm using the application_nginx cookbook which includes the nginx cookbook.
In my wrapper cookbook I have

cookbooks/bti_api/attributes/default.rb:
override[:nginx][:default_site_enabled] = false

However, the NGINX default site is still enabled!  At the bottom of the
nginx.conf file is
>   include /etc/nginx/conf.d/*.conf;
>   include /etc/nginx/sites-enabled/*;
> }
And conf.d/default.conf exists.

So, it seems that default_site_enabled is being ignored.  Is this not
the way to turn off the default_site?


Possibly relevant info:
I'm using the nginx::repo recipe

The run_list:
> INFO: Loading cookbooks [application, application_nginx,
> application_python, apt, aws, bti_api, build-essential, chef_handler,
> erlang, gunicorn, mercurial, nginx, ohai, python, rabbitmq, runit,
> supervisor, windows, yum]





The

--
Liam Kirsher
PGP: http://liam.numenet.com/pgp/





Archive powered by MHonArc 2.6.16.

§