#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
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