以下是我的knife.rb配置和受尊重的文件出现在上述位置
# See http://docs.chef.io/config_rb_knife.html for more information on knife configuration options
current_dir = File.dirname(__FILE__)
log_level :info
log_location STDOUT
node_name "anshulp25"
client_key "#{current_dir}/anshulp25.pem"
validation_client_name "deathstartatooine-validator"
validation_key "#{current_dir}/deathstartatooine-validator.pem"
chef_server_url "https://api.chef.io/organizations/deathstartatooine"
cookbook_path ["#{current_dir}/../cookbooks"]
但是当我做的时候
knife client list
我得到以下输出
$ knife client list
deathstartatooine-validator
不应列出anshulp25
条目吗?
以下是厨师详情
$ chef --version
Chef Development Kit Version: 0.10.0
chef-client version: 12.5.1
berks version: 4.0.1
kitchen version: 1.4.2
答案 0 :(得分:4)