Skip to content
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

Pass merged configuration to provisioner playbooks #2287

Merged
merged 1 commit into from
Sep 14, 2019
Merged

Pass merged configuration to provisioner playbooks #2287

merged 1 commit into from
Sep 14, 2019

Conversation

tadeboro
Copy link
Contributor

Up until now, molecule_yml variable in create/destroy playbooks contained only values from the scenario molecule YAML file. This made it a bit awkward to share common platforms definitions in different scenarios.

Changes in this commit replace the direct access to the scenario molecule configuration with the merged one. When the inventory and Ansible configuration files are written to the disk, merged
configuration is also stored in the ephemeral directory of the scenario currently being acted upon.

Note: This is a simpler implementation of #2193 and should fix #1423

PR Type

  • Feature Pull Request

Up until now, molecule_yml variable in create/destroy playbooks
contained only values from the scenario molecule YAML file. This made
it a bit awkward to share common platforms definitions in different
scenarios.

Changes in this commit replace the direct access to the scenario
molecule configuration with the merged one. When the inventory and
Ansible configuration files are written to the disk, merged
configuration is also stored in the ephemeral directory of the
scenario currently being acted upon.

Signed-off-by: Tadej Borovšak <[email protected]>
@decentral1se
Copy link
Contributor

Oh, interesting @tadeboro, will try to review soon. Ping @wilmardo!

@ssbarnea
Copy link
Member

@tadeboro can you post a link to a place where you use this feature? It would make easier to test.

@tadeboro
Copy link
Contributor Author

This is the PR that demonstrates what we wanted to do: sensu/sensu-go-ansible#32

Up until now, we only tested against latest Sensu docker image. Now that we wanted to add more platforms into the mix, adding them to every scenario became too painful to ignore.

Also, here is the link to the CI error that we get: https://circleci.com/gh/sensu/sensu-go-ansible/472?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link

@ssbarnea
Copy link
Member

@tadeboro thanks! Very useful addition, I also hope you will document it later. Feel free to contribute more to molecule, I am really looking to get more active contributors.

@ssbarnea ssbarnea merged commit 3b8c8d0 into ansible:master Sep 14, 2019
@tadeboro tadeboro deleted the use-merged-molecule-config-in-playbooks branch September 14, 2019 11:39
@ssbarnea ssbarnea added the bug label Feb 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

base-config not represented in ansible provisioner molecule_yml
3 participants