ansible-community / ansible-community/molecule-plugins

Missing ec2 driver defaults in scenario

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

Description

As i started using Molecule 6.0.2 with the newest ec2-driver, "molecule init..." command doesn't provide the correct file contents matching the drivers ec2.
For example the create.yml has not the values from

src/molecule_plugins/ec2/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}

Instead the values are from ...molecule/data/templates/scenario/create.yml.j2

**Installation method**
- Python venv
- pip3 install molecule 'molecule-plugins[ec2]'

**Version Information:**
molecule 6.0.2 using python 3.10
ansible:2.15.3
azure:23.5.0 from molecule_plugins
containers:23.5.0 from molecule_plugins requiring collections: ansible.posix>=1.3.0 community.docker>=1.9.1 containers.podman>=1.8.1
default:6.0.2 from molecule
docker:23.5.0 from molecule_plugins requiring collections: community.docker>=3.0.2 ansible.posix>=1.4.0
ec2:23.5.0 from molecule_plugins
gce:23.5.0 from molecule_plugins requiring collections: google.cloud>=1.0.2 community.crypto>=1.8.0
podman:23.5.0 from molecule_plugins requiring collections: containers.podman>=1.7.0 ansible.posix>=1.3.0
vagrant:23.5.0 from molecule_plugins

Thanks

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the molecule init command and compare the generated create.yml with the EC2 cookiecutter files under src/molecule_plugins/ec2/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}. Check why generation uses molecule/data/templates/scenario/create.yml.j2 instead. Done means an EC2 scenario is initialized with the EC2 driver defaults rather than the generic scenario values.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
cloud, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.