[chef] Re: Re: remote_directory & Chef Client 10.16.2


Chronological Thread 
  • From: "Jason J. W. Williams" < >
  • To:
  • Subject: [chef] Re: Re: remote_directory & Chef Client 10.16.2
  • Date: Tue, 11 Dec 2012 17:18:00 -0700

Ah cool. Will that be in 10.next ?

-J

On Mon, Dec 10, 2012 at 6:51 PM, Daniel DeLeo < " target="_blank"> > wrote:

On Monday, December 10, 2012 at 2:58 PM, Jason J. W. Williams wrote:

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
It's a bug that's fixed and applied to the 10-stable and master branches but not yet released.

-- 
Daniel DeLeo





Archive powered by MHonArc 2.6.16.

§