1 Create roles here, in either the Role Ruby DSL (.rb) or JSON (.json) files. To install roles on the server, use knife.
3 For example, create `roles/base_example.rb`:
6 description "Example base role applied to all nodes."
7 # List of recipes and roles to apply. Requires Chef 0.8, earlier versions use 'recipes()'.
9 # Attributes applied if the node doesn't have it set already.
11 # Attributes applied no matter what the node has set already.
12 #override_attributes()
14 Then upload it to the Chef Server:
16 knife role from file roles/base_example.rb