[chef] Re: Re: several questions regarding knife


Chronological Thread 
  • From: Kirill Timofeev < >
  • To: " " < >
  • Cc: Ranjib Dey < >
  • Subject: [chef] Re: Re: several questions regarding knife
  • Date: Thu, 21 Feb 2013 15:17:19 -0800

Thanks Ranjib for information! Everything was ok after running chef-client.

On 02/21/2013 12:26 PM, Ranjib Dey wrote:
" type="cite">



On Thu, Feb 21, 2013 at 12: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?
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?
 
you have to use "recipe[some]" or "role[some_role]" , that explicitly specifies whether its role or recipe
http://wiki.opscode.com/display/chef/Managing+Nodes+With+Knife#ManagingNodesWithKnife-Addtoanode%27srunlist.

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?
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?


did you run chef-client on those nodes after you manually updated the runlist? roles and recipes will be updated after a successful convergence

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

Thanks,
Kirill.





Archive powered by MHonArc 2.6.16.

§