[chef] Re: several questions regarding knife


Chronological Thread 
  • From: James Light < >
  • To:
  • Subject: [chef] Re: several questions regarding knife
  • Date: Thu, 21 Feb 2013 15:23:42 -0500

Inline responses

On Thu, Feb 21, 2013 at 3:15 PM, Kirill Timofeev < " target="_blank"> > wrote:
Folks,

may I ask you to clarify the following:

1. Is it possible to use knife to find all nodes with certain role in run list and change this role to another role?

I'd suggest using knife exec scripts for automating things like that.
 
2. When I do "knife node run_list add some_node some_role" a recipe with name "some_role" is added to run list, not node, what do I need to add role and not recipe?

knife node run_list add <node_name> role[<role_name>]

 
3. After doing previous step command "knife node run_list remove some_node some_role" doesn't remove newly added recipe with name "some_role", is this expected?

knife node run_list remove <node_name> recipe[<cookbook_name>::<recipe_name>] 

4. After changing manually roles on certain nodes from "old_role" to "new_role" I see via "knife search node "platform_version:10.04" that run list is ok, but roles still mention "old_role", why is this so?


Don't know what you mean here.
 

I'm using latest chef server (11.06) and knife 10.18.0


Not sure that's a good idea either...

 
Thanks,
Kirill.


Hope that helps.
-JL



Archive powered by MHonArc 2.6.16.

§