[chef] remote_directory & Chef Client 10.16.2


Chronological Thread 
  • From: "Jason J. W. Williams" < >
  • To:
  • Subject: [chef] remote_directory & Chef Client 10.16.2
  • Date: Mon, 10 Dec 2012 14:58:35 -0800

Hi Guys,

After upgrading a 0.10.8 client to 10.16.2, a cookbook we have that uses remote_directory now is triggering a reload of Nagios on every Chef run (only change is the Chef client version). 

Here is the configuration directive:

remote_directory node[:nagios][:manual_define_dir] do
  source "mandefine.d"
  files_backup 0
  files_owner "root"
  files_group "root"
  files_mode "0644"
  owner "root"
  group "root"
  mode "0775"
  notifies :reload, "service[nagios3]"
end


And the applicable output from Chef Client -l debug:

Processing remote_directory[/etc/nagios3/mandefine.d/] action create (nagios-server::default line 140)
Processing cookbook_file[/etc/nagios3/mandefine.d/zzz.d/aaa_vips.cfg] action create (dynamically defined)
Processing cookbook_file[/etc/nagios3/mandefine.d/yyy.d/aaa_vips.cfg] action create (dynamically defined)
Processing cookbook_file[/etc/nagios3/mandefine.d/xxx.d/www_vips.cfg] action create (dynamically defined)
Processing cookbook_file[/etc/nagios3/mandefine.d/xxx.d/load_balancers.cfg] action create (dynamically defined)
Processing cookbook_file[/etc/nagios3/mandefine.d/all.d/vvv_network.cfg] action create (dynamically defined)
Processing cookbook_file[/etc/nagios3/mandefine.d/all.d/zzz_misc.cfg] action create (dynamically defined)
Processing cookbook_file[/etc/nagios3/mandefine.d/all.d/universal_network.cfg] action create (dynamically defined)
Processing cookbook_file[/etc/nagios3/mandefine.d/all.d/yyy_general.cfg] action create (dynamically defined)
Processing cookbook_file[/etc/nagios3/mandefine.d/all.d/misc.cfg] action create (dynamically defined)
Processing cookbook_file[/etc/nagios3/mandefine.d/all.d/xxx_network.cfg] action create (dynamically defined)

...

remote_directory[/etc/nagios3/mandefine.d/] sending reload action to service[nagios3] (delayed)

Any ideas are greatly appreciated.

-J



Archive powered by MHonArc 2.6.16.

§