Run "sudo chef-client" from workstation -


i trying figure out way can run "sudo chef-client" workstation. tried following way failed.

c:\users\administrator\chef-repo>knife ssh name:node1 -a hostname -x windows -i knife.pem "sudo chef-client"

fatal: 1 node found, not have required attribute establish connection. try setting attribute open connection using --attribute.”

any guidance?

your node doesn't have hostname attribute set. try -a ipaddress instead use default ip address on machine.

for posterity, based on comments below user unclear windows hosts don't run ssh daemons , knife ssh cannot used. knife winrm recommended option windows nodes.


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -