Passwordless chef client bootstrapping

376 views Asked by At

I am bit familiar with Chef and its bootstrapping techniques. I am trying to bootstrap my new chef-client/node without passing password

I tried below by generating a ssh key but still failing

knife bootstrap MY_NODE_IP -x SERVER_ADMIN_USERNAME -i PATH_TO_KEY_FILE --sudo --node-name THE_NODE_NAME

On triggering above command on Chef DK getting error as below

WARN: [SSH] PTY requested: stderr will be merged into stdout
WARN: [SSH] connection failed, terminating (#<Net::SSH::AuthenticationFailed: Authentication failed for user user@mynode>)
ERROR: Train::Transports::SSHFailed: SSH session could not be established

I also tried doing manual installation as per below instruction , but again a failure https://serverfault.com/questions/761167/how-to-manually-set-up-a-chef-node I created a client manually, but I was unable to create a node in chef server manually. Please suggest

Getting network error as below

Networking Error:
-----------------
Error connecting to https://myserver/organizations/organization/nodes/mynode - Failed to open TCP connection to www.internet:8080 (getaddrinfo: Name or service not known)

Bootstrapping from my chef DK also throws an error

Is there a way to bootstrap linux chef client without using password from a windows chef DK? Below is my Chef environment 1.Chef Infra Client: 15.14.0

2.Chef Workstation 0.8.7.1

3.Chef-server 12.18.14

0

There are 0 answers