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


Chronological Thread 
  • From: Sachin Sagar Rai < >
  • To: chef < >
  • Subject: [chef] How to add several roles/recipes in an existing node?
  • Date: Thu, 8 Mar 2012 20:27:25 +0545


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.

§