-
Notifications
You must be signed in to change notification settings - Fork 78
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
molecule[ec2] documentation #267
Comments
and
|
Yeah, but these are partially populated stubs. I assume from this and the lack of docs I am to write ansible playbooks referencing keys declared in the molecule file.
|
no, just write your standard ansible roles, generate the molecule skeleton, update the in https://github.com/konstruktoid/ansible-role-template/tree/main/molecule, I got the |
I did this to start... the ec2 isn't created... let me loop back and simplify my molecule.yml to the bare minimum and try that again. The `create.yml` and `destroy.yml` created by the init using the ec2 driver will need to be deleted based in what you have said but these files existing stubbed out after the init had me thinking otherwise... the lack of docs didn't give anything to gut check against vice reading the code.
|
I'm not defending the lack of documentation in any way, but I've never had to create or modifiy |
fwiw, for some plugins (I guess it's including ec2), there's an issue coming from molecule. Cookiecutter support has been removed (and I don't remember seeing some kind of replacement possible from -plugins point of view). The leads to the issue of |
When using the EC2 plugin?
Okay. This good to know. The fault is likely with my molecule.yml and the stubbed out create.yml and destroy.yml being created by the init. I will revisit this morning.
|
Hmm. I'm on Ubuntu 22.04.4 LTS using
My Python dependency tree is
I'm authenticated into the aws cli and verified I can pull the contents from s3 via My molecule folder only holds {{project path}}/molecule/grr/molecule.yml and nothing else The contents for {{project path}}/molecule/grr/molecule.yml are (some of which I had to guess at referring to the defaults https://github.com/ansible-community/molecule-plugins/blob/main/src/molecule_plugins/ec2/cookiecutter/%7B%7Bcookiecutter.molecule_directory%7D%7D/%7B%7Bcookiecutter.scenario_name%7D%7D/create.yml#L19) -- I later found and verified against https://github.com/ansible-community/molecule-plugins/blob/main/doc/ec2/platforms.rst:
Executing
Well, it sez it does
But it doesn't as there no instance to ansible:
Adding back in the create.yml and destroy.yml created by molecule init configured to use the ec2 drive have no impact when rerunning the create. My organization requires MFA, so I am setting these environment variables:
@ssbarnea thoughts? |
To get the create to work I had to go to v23.5.3's and copy the content from between |
And yep... do the same with I guess this is cuz cookiecutter support was removed or something? |
Building on #266, I would love the same.
Finding /molecule-plugins/test/ec2/scenarios/driver/ec2/molecule/default/molecule.yml I'm like woot, woot, until I realize the ../../../../../resources/playbooks/ec2/create.yml and ../../../../../resources/playbooks/ec2/destroy.yml playbooks aren't included in the repo.
The text was updated successfully, but these errors were encountered: