cookbook new_resource.cookbook
source new_resource.template
owner "root"
group "root"
mode 0644
variables new_resource.variables.merge(:name => new_resource.name, :directory => site_directory)
cookbook new_resource.cookbook
source new_resource.template
owner "root"
group "root"
mode 0644
variables new_resource.variables.merge(:name => new_resource.name, :directory => site_directory)
- "/etc/apache2/sites-available/#{new_resource.name}"
+ if node[:lsb][:release].to_f >= 14.04
+ "/etc/apache2/sites-available/#{new_resource.name}.conf"
+ else
+ "/etc/apache2/sites-available/#{new_resource.name}"
+ end