Details
Description
I was trying to update a node to include a new role. This is what it looked liked:
sascha@sascha-PC13 ~/chef-repo/roles
$ knife node run_list add i-d97952b2 [dev_env_yum_repo]
This is what it looks like when viewed in either the WebUI or the json info:
"run_list": [
"role[dev_env_webserver]",
"recipe[recipe[recipe[recipe[[dev_env_yum_repo]]]]]"
],
"chef_type": "node"
Here's my role directory
sascha@sascha-PC13 ~/chef-repo/roles
$ ls
README dev_env_bamboo.rb dev_env_subversion.rb dev_env_yum_repo.rb
base.rb dev_env_crowd.rb dev_env_webserver.rb image_server.rb
This is my first bug report and I've only got about a month in working on Chef, so I might have missed something. This was not critical once I figured out how to edit the node information directly. I did look around to see if something similar had been reported before creating a ticket.
You need to put the roles/recipes in quotes when using the knife node run list add subcommand.
knife node run list add NODE "role[dev_env_yum_repo]"