【发布时间】:2023-04-02 10:22:01
【问题描述】:
运行厨房收敛时出现以下错误:
================================================================================
Error expanding the run_list:
================================================================================
Missing Role(s) in Run List:
我需要做什么才能让测试厨房运行找到角色? 我从包含角色/目录的 chef-repo/ 目录运行。
kitchen.yml文件内容
---
driver:
name: vagrant
provisioner:
name: chef_solo
roles_path: ./roles
platforms:
- name: centos-7.1
suites:
- name: default
run_list: role['role-name']
attributes:
【问题讨论】:
-
角色在./roles中,是一个role-name.rb ruby文件。
标签: chef-infra chef-solo test-kitchen