opscode/cookbooks — comment on commit c41ffb38c90337b978926af671ca85b2d0f6c149
File: nagios/recipes/pagerduty.rb line 13
By andreacampi:

You did, sorry for the confusion.

The point is: a file named ```#{node['nagios']['plugin_dir']}/pagerduty_nagios.pl``` gets created.

On the next run, ```execute[archive-default-nagios-object-definitions] ``` will do:

mv #{node['nagios']['config_dir']}/*_nagios*.cfg #{node['nagios']['conf_dir']}/dist

i.e. move away the file you just created. At which point the remote_file will run again, and so on and so forth :/