------------------------------------------------------------
C:\chef-repo>knife role show webserver
chef_type: role
default_attributes:
apache:
greeting: webminar
description:
env_run_lists:
json_class: Chef::Role
name: webserver
override_attributes:
run_list: recipe[apache]
C:\chef-repo>knife node run_list add module3 "role[webserver]"
module3:
run_list: recipe[roles]
C:\chef-repo>knife node show module3
Node Name: module3
Environment: _default
FQDN: centos63.example.com
IP: 10.160.201.90
Run List: recipe[roles]
Roles:
Recipes: apache, apache::default
Platform: centos 6.4
Tags:
-------------------------------------------------------------