-
Notifications
You must be signed in to change notification settings - Fork 79
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
Randomly generated SSH Password not set unless communicator type is explicitly set to ssh #415
Comments
@shubhang93 I did some investigating and I believe that the root cause of this issue is that
communicator field is unset, the plugin assumes you want to use SSH for Linux builds, whenever I build without communicator set to ssh I see an empty ssh password, but we print the admin password regardless which makes this appear as if the password is just not exposed.
Its important to note this is not a bug with the exposure of the password, but with the password itself not being set. You should be able to set |
Thanks for the update ! |
Hey @shubhang93 Just an FYI I've reopened this issue cause I think its still worth fixing the issue you pointed out :], thanks! |
When filing a bug, please include the following headings if possible. Any
example text in this template can be deleted.
Overview of the Issue
The build variable
Password
returns an empty string if it's not explicitly set using thessh_password
option. Whenssh_password
is set it works fine.Reproduction Steps
Steps to reproduce this issue
Plugin and Packer version
packer:
v1.10.0
Plugin:
v2.1.3
From
packer version
Simplified Packer Buildfile
If the file is longer than a few dozen lines, please include the URL to the
gist of the log or use the Github detailed
format
instead of posting it directly in the issue.
setup.sh
output
Operating system and Environment details
OS, Architecture, and any other information you can provide about the
environment.
Log Fragments and crash.log files
Set the env var
PACKER_LOG=1
for maximum log detail.The text was updated successfully, but these errors were encountered: