【发布时间】:2015-01-17 01:38:40
【问题描述】:
我已将厨师文件从厨师服务器复制到本地客户端节点,在~/.chef 下,我在~/.chef/environments 下拥有所有环境,例如development.rb、production.rb等
当我从~/.chef/ 下运行chef-client -z -E development -r 'recipe[cookbook_foo::recipe_bar]' 时,我收到此错误:
================================================================================
Error expanding the run_list:
================================================================================
Unexpected API Request Failure:
-------------------------------
Object not found: http://localhost:8889/environments/development
如果我在没有-E development 的情况下运行命令,一切正常。但是,我需要传递环境名称,因为该厨师食谱中使用了 #{node.chef_environment} 变量。谷歌没有为我提供这个问题的答案:/
我正在使用 Chef 客户端 11.16.4
有什么想法吗?
【问题讨论】:
标签: chef-infra chef-zero