How to add multiple recipes to multiple nodes?


#1

Hi

Correct me if I am wrong.
Role is a collection of recipes. Usually those recipes are used for same functionality. We can add node to roles while defining run-list by using following command

knife node run_list add NODE_NAME ‘role[ROLE_NAME]’

This is the scenario where I need help: I want to create a group of nodes and attach them with a role. So, when I define the run-list, I should be able to add bulk nodes to role in one go.
How do I do that?

Regards
Manish Mehra


#2

First find but this has good examples on how to do it with knife exec.