[chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: command to run only part of run list one a node


Chronological Thread 
  • From: Daniel DeLeo < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: command to run only part of run list one a node
  • Date: Fri, 6 Sep 2013 12:24:00 -0700


On Friday, September 6, 2013 at 11:07 AM, Manoj Thakkar wrote:

Sure,

I have a recipe for deploying war files to jboss , I use war file name and location to download it from as a parameter in the recipe.
The idea is to override those variables using the roles. 
So if i want to deploy a war file abc.war i call the abc role.

Does it make sense ? I am not sure if this is the best way to do it, even i am not impressed with this since i have to pass the role as a  parameter to chef client every time.

Thanks
Manoj
You probably want to extract your recipe code to a LWRP so you can just plug the data into it. See here:

http://docs.opscode.com/lwrp_custom_provider.html

Once that's done, you can give each app deployment its own recipe or cookbook.

-- 
Daniel DeLeo




Archive powered by MHonArc 2.6.16.

§