[chef] Managing Varnish config files


Chronological Thread 
  • From: Steven De Coeyer < >
  • To: " " < >
  • Subject: [chef] Managing Varnish config files
  • Date: Tue, 26 Feb 2013 12:05:54 +0100

Ohai

I was wondering how some of you manage Varnish config files, as it is very hard to use parameters/attributes in these things. 

Opscode varnish cookbook seems to agree on this and gets the config files from a defined source and/or different cookbook by setting the following attributes:

default['varnish']['vcl_source']
default['varnish']['vcl_cookbook']

It then puts the template in the following way:

template "#{node['varnish']['dir']}/#{node['varnish']['vcl_conf']}" do
  source node['varnish']['vcl_source']
  if node['varnish']['vcl_cookbook']
    cookbook node['varnish']['vcl_cookbook']
  end
  owner "root"
  group "root"
  mode 0644
  notifies :restart, "service[varnish]"
end


This seems like a good idea, but I was wondering how other people are managing this?

Kind regards,
Steven




Archive powered by MHonArc 2.6.16.

§