ansible-community / ansible-community/molecule-plugins

windows based instances do not work using default template

Open
#55 1 comment 2 reactions 0 assignees View on GitHub
ec2
Dominant language
Python
Stars
164
Forks
113
Avg merge
4d 20h
Merged PRs (30d)
1

Description

@jgoldschrafe 's excellent work on the create/destroy templates significantly degrade windows support. To me the killer feature of molecule-ec2 of using docker is the support for Windows based hosts.

The default cloud-init key inject method doesn't create or associate an ec2 based key. This is required to extract the default random windows password from AWS.

The default security group only permits ssh access, it doesn't allow the winrm ports or rdp. These should be safe to open as they don't overlap with significant linux services.

The image user data is hard coded to be cloud-init yaml content. For a Windows image this should be powershell. The structure of passing a dict via platform_cloud_config which is converted to yaml will not work for Windows user_data.

Waiting for the ssh port to come up also doesn't work on a host which doesn't use ssh. Changing the port is insufficient as the test looks for the ssh connection response.

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no files or tests. Start by tracing the create/destroy templates and the default key injection, security-group, user-data, and readiness checks; compare their assumptions with Windows EC2 behavior. Done means Windows instances can obtain their password and support the required WinRM, RDP, and readiness paths.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, powershell, python
Domain
cloud, devops, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.