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

builder/amazon: validate ssh key name/file #4665

Merged
merged 1 commit into from
Mar 13, 2017
Merged

builder/amazon: validate ssh key name/file #4665

merged 1 commit into from
Mar 13, 2017

Conversation

mwhooker
Copy link
Contributor

When using ssh_key_name, ssh_private_key file must be given,
or ssh_agent_auth enabled.

When automatically retrieving the winrm password, if ssh_key_name is
given, ssh_private_key_file must also be given.

Closes #4164

When using ssh_key_name, ssh_private_key file must be given,
or ssh_agent_auth enabled.

When automatically retrieving the winrm password, if ssh_key_name is
given, ssh_private_key_file must also be given.
@mwhooker mwhooker added this to the v1.0 milestone Mar 13, 2017
@rickard-von-essen
Copy link
Collaborator

Looks good, the only thing I can see is that this forbids the use of ssh_keypair_name and ssh_password together. But I can't come up with any valid reasons why you would use that.

@mwhooker
Copy link
Contributor Author

the only thing I can see is that this forbids the use of ssh_keypair_name and ssh_password together

oof, this is a mess. we really need a more robust configuration declaration language.

@mwhooker
Copy link
Contributor Author

I'll posit for now that if you have the key name and a password, you've probably got a configuration error

@mwhooker mwhooker merged commit 677e885 into master Mar 13, 2017
@mwhooker mwhooker deleted the fix4164 branch March 13, 2017 21:26
rickard-von-essen added a commit to lbordowitz/packer that referenced this pull request Mar 14, 2017
dacamp pushed a commit to dacamp/packer that referenced this pull request Mar 17, 2017
dayglojesus pushed a commit to dayglojesus/packer that referenced this pull request Apr 6, 2017
@ghost ghost locked and limited conversation to collaborators Apr 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

builder/amazon: Crashing getting auto-generated password for instance
2 participants