Nic, Thanks for your response. I tried that but it didn't work. When I included it in my recipe the converge threw an exception include_recipe "nginx::repo" [2013-06-12T17:32:36+00:00] FATAL: Chef::Exceptions::ResourceNotFound: resource execute[nxdissite default] is configured to notify resource service[nginx] with action reload, but service[nginx] cannot be found in the resource collection. execute[nxdissite default] is defined in /srv/chef/file_store/cookbooks/nginx/definitions/nginx_site.rb:32:in `block in from_file'Am I not referencing it correctly? I looked in the nginx_site definition, and that only seems to deal with the ubuntu style of linking sites in the sites-enabled directory -- so this may be a moot point anyway. In this case (I think because it comes from the repo) nginx.conf *also* is including conf.d/*.conf. That directory includes a default.conf which is also listening on the same interface and port, so that creates a conflict. The default template nginx.conf.erb ends with: include <%= node['nginx']['dir'] %>/conf.d/*.conf; include <%= node['nginx']['dir'] %>/sites-enabled/*; It seems like the two host configuration schemes are colliding. (Or, perhaps, conf.d could be used for other type of configuration includes. But in this case, it has a default site defined.) I kinda think this is a bug in the template, but it may be correct for other versions of nginx (it's getting 1.4.1 from the repo). In any case, thanks for the suggestion. Liam On 06/12/2013 08:04 AM, Nic Grayson
wrote:
" type="cite"> -- Liam Kirsher PGP: http://liam.numenet.com/pgp/ |
Archive powered by MHonArc 2.6.16.