尝试 bootstrap Chef for windows client with knife-windows 的问题

Issues trying to bootstrap Chef for windows client with knife-windows

我在尝试为 Chef bootstrap 一个 windows 节点时遇到了一些问题。该节点最初能够部分 bootstrapped,它完成了大部分过程,但是,在接近尾声时失败了 - 在 windows 客户端本身上,我可以在 C:\Chef

然而,自从升级我的 Ruby 和 Knife-Windows 以解决原来的问题后 - 我现在根本无法 bootstrap,我得到以下错误:

chefadmin@AUK-CHEFMGT1:~$ knife bootstrap windows winrm 10.28.154.61 -x chefadmin -P xxxxxx

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/mixin/path_sanity.rb:25: 
warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777


Waiting for remote response before bootstrap.10.28.154.61 . 
10.28.154.61 Response received.
Remote node responded after 0.01 minutes.
Bootstrapping Chef on 10.28.154.61
ERROR: RuntimeError: Knife-Windows < 1.0 does not support validatorless bootstraps

我尝试了几个不同版本的 knife-windows,最初是 1.1.1,最近是 1.0.0 rc1 的预发布版本,但是,它们都给我这个错误。

我不确定为什么这是个问题,因为 validation.pem 确实存在于 C:\Chef\

的 windows 客户端上

以防万一,这是我的 knife.rb 配置文件:

chefadmin@AUK-CHEFMGT1:~$ 
GNU nano 2.2.6    File: /home/chefadmin/chef-repo/.chef/knife.rb 
current_dir = File.dirname(__FILE__)
log_level                :info
log_location             STDOUT
node_name                "chefadmin"
client_key               "#{current_dir}/ChefRSA.pem"
validation_client_name   "company"
validation_key           "#{current_dir}/companyvalidator"
chef_server_url          "https://10.28.253.101/organizations/company"
syntax_check_cache_path  "#{ENV['HOME']}/.chef/syntaxcache"
cookbook_path            ["#{current_dir}/../cookbooks"]

"#{current_dir}/companyvalidator" 该文件是否存在?通常这会以 .pem 结尾。如果这条路不是问题,它会退回到新式引导,我认为这在 Windows 上还行不通。