define :nagios_conf, :variables => {}, :config_subdir => true doconf_dir = params[:config_subdir] ? node['nagios']['config_dir'] : node['nagios']['conf_dir']template "#{conf_dir}/#{params[:name]}.cfg" doowner node['nagios']['user']group node['nagios']['group']source "#{params[:name]}.cfg.erb"mode 00644variables params[:variables]notifies :reload, "service[nagios]"backup 0endend
Hi Steffen,On Sun, May 26, 2013 at 3:47 PM, Steffen Gebert < " target="_blank"> > wrote:
I used to use chef-rewind until I got the tip form Joshua to just access
the resource collection via resources().
So, I'd be interested in what's the benefit of the chef-rewind gem?Functionally, there's no benefit/difference - it's just a little "syntactic sugar". Some people may prefer chef-rewind's syntax, even when they know how to do it directly. Similarly, ruby-averse Chef users may find it a little easier to use; a shallower learning curve makes a big difference in some teams.Zac
Archive powered by MHonArc 2.6.16.