问题:我试图使用chef_zero测试以ruby格式指定的菜谱角色,但当我尝试执行kitchen converge时。看起来它无法扩展kitchen.yml中指定的角色。
如何解决:是否不可能使用chef-zero在菜谱中使用测试厨房测试角色,还是不能在kitchen.yml中正确调用角色。如何在本地使用chef_zero测试角色。
**chef-environment**:
Chef Development Kit Version: 0.12.0
chef-client version: 12.8.1
berks version: 4.3.0
kitchen version: 1.6.0
**kitchen.yml**:
suites:
- name: default
run_list:
- role[test_role]
**Error**
[2016-05-25T12:58:37-04:00] ERROR: Role test_role (included by 'top level') is in the runlist but does not exist. Skipping expand.
================================================================================
Error expanding the run_list:
================================================================================
Missing Role(s) in Run List:
----------------------------
* test_role included by 'top level'
Original Run List
-----------------
* role[test_role]chef-stacktrace.out
厨师::例外::MissingRole:展开的运行列表包含不存在的角色: test_role
发布于 2016-05-25 20:03:54
ChefFS (因此是零、本地模式、solo等)直到12.10 (最新的版本)才支持Ruby格式的文件。您需要对老厨师使用JSON格式。
https://stackoverflow.com/questions/37443603
复制相似问题