Skip to content
New issue

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

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

Already on GitHub? # to your account

Fetch login credentials for Windows hosts #218

Open
nrgetik opened this issue Jul 27, 2021 · 0 comments
Open

Fetch login credentials for Windows hosts #218

nrgetik opened this issue Jul 27, 2021 · 0 comments

Comments

@nrgetik
Copy link

nrgetik commented Jul 27, 2021

As an example, in kitchen-ec2, there is a facility for automatically fetching the Administrator password for use over winrm, which kitchen then uses to connect to the instance following provisioning, install the client, and continue the run:

https://github.com/test-kitchen/kitchen-ec2#winrm :

WinRM

For Windows instances the generated Administrator password is fetched automatically from Amazon EC2 with the same private key as we use for SSH.

Part of the implementation resides here:

https://github.com/test-kitchen/kitchen-ec2/blob/v3.10.0/lib/kitchen/driver/ec2.rb#L567-L580

Can something analogous be implemented in kitchen-openstack ? If not, or in either case, what is the recommended way of testing on Windows using kitchen-openstack ? As related to authentication, in particular when the Windows Administrator password is randomly generated upon creation.

Currently, the thought is to use cloud_config to add a new user and specify those credentials under transport, but this method has some drawbacks, as does doing the same with user_data. Is there a better approach?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant