[chef] Re: varnish configured correctly but not starting


Chronological Thread 
  • From: Graham Stewart < >
  • To: " " < >
  • Cc: Steve Baroti < >
  • Subject: [chef] Re: varnish configured correctly but not starting
  • Date: Wed, 5 Oct 2011 10:01:59 -0700

We worked on the varnish cookbook a month ago and discovered the same thing.

Our solution was to edit ubuntu-default.erb with the line:

START=yes

or, even better,

START=<%= node[:varnish][:start_state] %>

and define node[:varnish][:start_state] in a role.

After that it worked perfectly, with a basic configuration. Varnish needs a lot of configuration and it makes sense to me that the cookbook, by default, would not start it.

--
Graham Stewart          

  416-550-2806
Network and Storage Services Manager, Information Technology Services
University of Toronto Libraries
130 St. George Street
Toronto, Ontario, Canada M5S 1A5


On 11-10-05 09:46 AM, 

 wrote:

Chef folks,

I have a varnish recipe that ends with the following:

# Start varnish
service "varnish" do
   action [:start]
end

After I bootstrap the machine that runs varnish, I don't see varnish running.
When I log into the machine, it's evident my varnish recipe ran, varnish
configuration looks good, and I can start varnish by hand (sudo
/etc/init.d/varnish start) with no problems.

Any ideas?  Where should I look for logs showing what happened when the recipe
ran?  If it makes a difference, the machine is running 32 bit Ubuntu 11.04.

Jeff




Archive powered by MHonArc 2.6.16.

§