Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

knife bootstrap behavior changed - no longer prompts for password when password not provided #8746

Open
chadmccune opened this issue Jul 16, 2019 · 2 comments

Comments

@chadmccune
Copy link

commented Jul 16, 2019

Description

Before the rewrite, if you didn't provide the password in the bootstrap command, you would be prompted for it. Now it appears the password parameter is mandatory.

Chef Version

root@3b0bc4ce587d:/# chef --version
Chef Workstation version: 0.5.1
Chef Infra Client version: 15.1.36
Chef InSpec version: 4.6.9
Test Kitchen version: 2.2.5
Foodcritic version: 16.1.1
Cookstyle version: 5.0.0

Platform Version

Ubuntu 18.04

Replication Case

Attempt to bootstrap new windows node from linux node without providing password parameter

Client Output

ERROR: RuntimeError: password is a required option

Stacktrace

@chadmccune

This comment has been minimized.

Copy link
Author

commented Jul 16, 2019

Also, I found this out the hard way...if you mistype said password in the parameter, it just appears to continuously try and locks your domain account out :)

@mattray

This comment has been minimized.

Copy link
Member

commented Aug 13, 2019

ChefDK 3.11.3

$ knife bootstrap wernstrom -x pi
Connecting to wernstrom
pi@wernstrom's password:  

ChefDK 4.3.13

$ knife bootstrap wernstrom -U pi 
Connecting to wernstrom
ERROR: Train::ClientError: Your SSH Agent has no keys added, and you have not specified a password or a key file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.