[chef] Call a recipe from same cookbook


Chronological Thread 
  • From: Julian Varanini < >
  • To: " " < >
  • Subject: [chef] Call a recipe from same cookbook
  • Date: Sun, 27 Sep 2015 08:33:31 -0700
  • Importance: Normal

Hi All,

This may be a very basic concept but I am not able to find the syntax to make it work.  For Example, Is it possible to create a resource in recipe email.rb named emailme that can take a parameter that I can then feed into the recipe to email me a specific message from another recipe using notifies and only_if etc.  So what I am trying to do is reuse code instead of writing an emailme resource in every recipe. 

Thanks

Julian V



Archive powered by MHonArc 2.6.16.

§