哪个命令可用于在* UNIX系统下通过Chef-client为当前运行列表提取食谱?

问题描述 投票:0回答:1

Env:

chef-client --version
Chef: 14.3.37

说明:

厨师客户端通过以下命令运行

chef-client -c <file.rb> -j <file.json> -E <env> 2>&1 > file.log

执行file.log后包含以下有关当前运行的已解决食谱列表的行:

[time] INFO: Loading cookbooks [[email protected], [email protected], [email protected], [email protected], [email protected]]

问题:

通过chef-client的哪个命令(不是knife!),我可以提取带有版本的菜谱列表?

PS:

解析日志不是个好主意。无法配置knife-秒。

centos chef cookbook
1个回答
0
投票

如果要访问扩展配方运行清单,请使用node['recipes']

如果您对节点的角色感兴趣,请使用node['roles']

© www.soinside.com 2019 - 2024. All rights reserved.