[chef] Re: Re: Creating multiple recipes in one cookbook


Chronological Thread 
  • From: Ashutosh Narayan < >
  • To:
  • Subject: [chef] Re: Re: Creating multiple recipes in one cookbook
  • Date: Mon, 18 Feb 2013 20:15:03 +0530



On Mon, Feb 18, 2013 at 8:03 PM, Michael Glenney < " target="_blank"> > wrote:
You need to explicitly call any recipe that isn't default:

include_recipe "php::php_install"
This worked for us.
Thank you, 


Michael Glenney
Sent from my iPhone
Hi folks,

I am facing some issues in creating multiple recipes under same cookbook.
What am trying to achieve is say - I have a cookbook named "php" under
which I have recipes/default.rb. When I write ruby snippet to install php
having file name default.rb things works out to be fine, 
but when I create a recipe name "php_install.rb" or "php_uninstall.rb" under
recipes directory and write the same code it doesn't allow me to install or
uninstall php respectively. 
I also tried with an option include_recipe "php" in default.rb file. 
Then too it didn't work out.

Where am I going wrong ?
Any inputs ?

Thank you,
-- 
Ashutosh Narayan

http://ashutoshn.wordpress.com/




--
Ashutosh Narayan

http://ashutoshn.wordpress.com/




Archive powered by MHonArc 2.6.16.

§