I'm trying to run 'sudo chef-client' on all nodes. To do that, I'm trying to run command:
sudo knife ssh name:* 'sudo chef-client'
but get errors with connection to machine
WARNING: Failed to connect to -- Net::SSH::AuthenticationFailed: *chef_workstation_user_name*@*node_name*
The nodes are real machines in local network. I've registered nodes by running
sudo knife bootstrap node_ip_address -x node_name -P node_pass --sudo
When I'm running
sudo knife ssh name:node_name -x node_user -P node_pass 'sudo chef-client'
it still asks local machine's (node) password and then runs chef-client with superuser permissions.
So the question is how to run 'sudo chef-client' on all nodes in my situation?
P.S. All nodes have different superuser name