libraries/helpers.rb
#
# Defined resource for list.conf to include all subconfig files
#
# @param [String] sub_dir - The subconfig directory for the config
#
Defined resource for list.conf to include all subconfig files
Defined resource for list . conf to include all subconfig files
def write_include(sub_dir, name)
      template "#{new_resource.conf_dir}/#{sub_dir}/list.conf #{name}" do
        path "#{new_resource.conf_dir}/#{sub_dir}/list.conf"
        cookbook 'dhcp'
        source 'list.conf.erb'
        owner 'root'
        group 'root'
        mode '0644'
        variables(files: includes(sub_dir))
        notifies :restart, "service[#{node['dhcp']['service_name']}]", :delayed
      end
    end
def write_include ( sub_dir , name ) template "#{new_resource.conf_dir}/#{sub_dir}/list.conf #{name}" do path "#{new_resource.conf_dir}/#{sub_dir}/list.conf" cookbook 'dhcp' source 'list.conf.erb' owner 'root' group 'root' mode '0644' variables ( files : includes ( sub_dir ) ) notifies :restart , "service[#{node['dhcp']['service_name']}]" , :delayed end end
Defined resource for list.conf to include all subconfig files
Defined resource for list . conf to include all subconfig files
sub_dir
name
The subconfig directory for the config
The subconfig directory for the config