Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 0879edea41
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (12 sloc) 0.436 kB
define :icinga_conf, :variables => {}, :config_subdir => true do
conf_dir = params[:config_subdir] ? node['icinga']['config_dir'] : node['icinga']['conf_dir']
template "#{conf_dir}/#{params[:name]}.cfg" do
owner "#{node['icinga']['user']}"
group "#{node['icinga']['group']}"
source "#{params[:name]}.cfg.erb"
mode 0644
variables params[:variables]
notifies :restart, "service[icinga]"
backup 0
end
end
Jump to Line
Something went wrong with that request. Please try again.