- From: Siddheshwar More <
>
- To: ans <
>
- Cc:
- Subject: [chef-dev] Re: can add a role under another role ?
- Date: Thu, 6 Feb 2014 17:09:37 +0530
Yes you can. Actually roles contains other role + recipes, at runlist execution time all roles evaluated in order.
Ex: Role1 = [recipe[recipe1]]
Role2(contains role1) = [role[role1], recipe[recipe2]]
and your Node runlist contains Role2 then,at execution time Role2 becomes => [recipe[recipe1], recipe[recipe2] ]
Final runlist contains only recipes.To add one Role to another Role you can use https://manage.opscode.com/ go to Roles->select role (i.e in which you want add other roles) -> edit -> and then by using drag and drop you can add or remove roles+recipes from runlist
Or
You can use knife plugin to edit role see $knife role --help
Archive powered by MHonArc 2.6.16.