[chef] Re: How to add several roles/recipes in an existing node?


Chronological Thread 
  • From: Jamie van Dyke < >
  • To:
  • Subject: [chef] Re: How to add several roles/recipes in an existing node?
  • Date: Thu, 8 Mar 2012 14:44:51 +0000

Try separating roles with double quotes:  "role[blah]","role[moo]"

On Mar 8, 2012, at 2:42 PM, Sachin Sagar Rai wrote:


How can I add list of roles/recipes via knife in the nodes run list?

When I add multiple roles, the resulting run list for that node is weird.

    knife node run_list add i-4f55fb2b 'role[base],role[app_database_master],role[app_ror],role[app_ror_run_migrations]'

    run_list: 
        recipe[recipe[recipe[recipe[role[base],role[wecove_database_master],role[app_ror],role[app_ror_run_migrations]]]]
        recipe[role[base],role[app_database_master],role[app_ror],role[app_ror_run_migrations]]

In the help `knife node run_list -h`, there is bulk delete but not bulk add.

Is there any work-around for this?

-------------------------------------------
@millisami
~ Sachin Sagar Rai
Ruby on Rails Developer
http://tfm.com.np
http://nepalonrails.tumblr.com
Sent with Sparrow





Archive powered by MHonArc 2.6.16.

§