[chef] Re: Re: Remove recipe from role


Chronological Thread 
  • From: meenakshi agrawal < >
  • To:
  • Subject: [chef] Re: Re: Remove recipe from role
  • Date: Tue, 19 Jun 2012 14:21:11 +0530

knife node run_list remove NODENAME 'recipe[cookbookname::recipie]'

This may help.

On Tue, Jun 19, 2012 at 2:19 PM, Ash Berlin < " target="_blank"> > wrote:

On 19 Jun 2012, at 04:32, John Dyer wrote:

> Hey Guys,
>
>   I have a quick question.. so in my base role I make use of the Dynect cookbook to set DNS on the new node.  However once the node is provisioned I no longer need to run this recipe and would like to remove it from the runlist.  The problem is I am not seeing a way to remove a recipe from within a nodes runlist, only remove roles entirely and recipes....  So is this possible or do I need to refactor things a bit and pull out the DynEct cookbook from the role ?
>
> Thanks!
>
> -John
>


node.run_list.remove("recipe[dynect::default]") should do the right thing (replace 'dynect::default' as appropriate;



--
Thanks
Meenakshi Agrawal
The secret of achievement is to hold a picture of a successful outcome in the mind



Archive powered by MHonArc 2.6.16.

§