[chef] "notify" on any change made in an include_recipe call


Chronological Thread 
  • From: Jeff Blaine < >
  • To:
  • Subject: [chef] "notify" on any change made in an include_recipe call
  • Date: Tue, 29 Sep 2015 16:53:43 -0400

I've never seen any code to do this, so I figured I'd throw it out there
as a question in case there's some crazy existing way to solve it.

Cookbook reuse... Community cookbooks...

Is something like the following idea possible? Or is the lack of ability
to do the following one of the reasons for the new-headed resource-heavy
cookbook design push[1]?

include_recipe 'java' do
  notifies :restart, 'service[myjava-service]', :immediately
end

Footnotes:

1. java "8" do
     notifies :restart, 'service[myjava-service]', :immediately
   end




Archive powered by MHonArc 2.6.16.

§