- From: Ash Berlin <
>
- To:
- Subject: [chef] Re: Remove recipe from role
- Date: Tue, 19 Jun 2012 09:49:02 +0100
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;
Archive powered by MHonArc 2.6.16.