use_inline_resources
action :install do
- unless installed?
- package package_name
- end
+ package package_name unless installed?
if new_resource.conf # ~FC023
template available_name("conf") do
source new_resource.conf
owner "root"
group "root"
- mode 0644
+ mode 0o644
variables new_resource.variables
end
end
end
action :enable do
+ execute "a2enmod-#{new_resource.name}" do
+ command "a2enmod #{new_resource.name}"
+ user "root"
+ group "root"
+ not_if { ::File.exist?(enabled_name("load")) }
+ end
+
link enabled_name("load") do
to available_name("load")
owner "root"