I am trying to configure some nodes with specific run_lists
depending on environment. So I created environments, then created role and specified env_run_list
, and after that created node my_node_ip.json
:
{
"chef_environment": "test",
"run_list":["role[base]"]
}
but when I start knife solo cook
, the _default
environment is set. Just after I make -E test
flag it works right. This is not right behavior that I expect when I specify chef_environment
variable in node's config.
Is there better way to avoid of using -E
flag?