Skip to content

Fetch login credentials for Windows hosts #218

@nrgetik

Description

@nrgetik

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions