[chef] Re: multiple run_list items with knife??? knife node run_list remove xyz.abc.org 'recipe[chef-client]'


Chronological Thread 
  • From: Max Gorbul < >
  • To:
  • Subject: [chef] Re: multiple run_list items with knife??? knife node run_list remove xyz.abc.org 'recipe[chef-client]'
  • Date: Tue, 13 Mar 2012 08:34:35 -0700

That was discussed recently and the ticket is opened for that http://tickets.opscode.com/browse/CHEF-1398

You can use knife exec until the fix gets merged 

knife exec -E 'n=search(:node, "name:coolnode").first; n.run_list = Chef::RunList.new("role[foo]", "role[bar]"); n.save'

--max

On Tue, Mar 13, 2012 at 8:23 AM, Van Fossan,Randy < " target="_blank"> > wrote:

How do I remove or add multiple roles / recipes with the knife node run_list [add/remove] command?  I have looked through the wiki and experimented a bit and cannot figure out how to remove multiple roles or recipes in the same command.

 

Also, is there a way to remove all run_list items from the knife command line regardless of what roles or recipes are contained therein?

 

Thanks

Randy





Archive powered by MHonArc 2.6.16.

§