Added Role to run list on node but recipe and Role is missing


#1

Hey Chef folks,

Got an issue that I can’t seem to figure out.

I created a role:

paulu@cowboy-base-cookbook$ knife role show elastalert-service
chef_type:           role
default_attributes:
description:         Roles for elastalert node
env_run_lists:
json_class:          Chef::Role
name:                elastalert-service
override_attributes:
run_list:            recipe[cm-monitor-checking::elastalert]

Then added the role to the node: but we’re missing Roles and Recipes

    paulu@cm-base-cookbook$ knife node show logstash.cows.com
    Node Name:   logstash.cows.com
    Environment: cow-prod
    FQDN:        logstash.cows.com
    IP:          10.1.1.20
    Run List:    role[base], role[devtools], role[elasticsearch], role[logstash], role[curator], role[filebeat-client], role[elastalert-service]
    Roles:       base, devtools, elasticsearch, logstash, curator, filebeat-client
    Recipes:     cm-base::default, cm-base::mxhost, cm-base::renguser, cm-monitor-collection::collectd, chef-client, cm-monitor-storage::elasticsearch, cm-monitor-storage::logstash, cm-monitor-storage::curator, cm-monitor-collection::filebeat, ohai::default, yum::default, build-essential::default, build-essential::_rhel, rsync::default, curl::default, ntp::default, yum-epel::default, motd-tail::default, ulimit::default, collectd::default, collectd::_service, chef-client::default, chef-client::service, chef-client::init_service, cm-base::java, java::oracle, java::set_attributes_from_version, java::set_java_home, cm-base::deployuser, iptables::default, filebeat::default, filebeat::install_package, filebeat::config
    Platform:    centos 6.7
    Tags:

#2

Roles and Recipes are populated by the node at run time, so just run chef-client on your node and you’ll see them get updated.