chef - knife-windows is definitely installed but bootstrap still fails -
i have installed knife-windows. chef gem list shows knife-windows when run bootstrap i'm told it's not installed.
sudo -u user -h sh -c "cd /home/user/chef-repo/; chef gem list" sudo -u user -h sh -c "cd /home/user/chef-repo/; knife bootstrap windows winrm $vmip -r 'role[build_server]' -x 'domain\user' -v -p 'password'"
output
first command shows: knife-windows (0.8.5, 0.8.3)
second:
info: using configuration /home/user/.chef/knife.rb warning: hostname containing 'windows' specified. please install 'knife-windows' if attempting bootstrap windows node via winrm. doing old-style registration validation key @ /home/user/.chef/myserver-validator.pem... delete validation key in order use user credentials instead
is there obvious i'm missing?
cheers
looks chefdk setup incomplete, because sudo command calls /usr/bin/knife
looks rubygems-based knife
, not chefdk.
please make sure add chefdk $path of user, described here: https://docs.chef.io/install_dk.html#add-ruby-to-path
depending on setup, want use sudo -i
execute command within login shell.
Comments
Post a Comment