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

RFE: Shared inventory directory #4002

Open
cidrblock opened this issue Aug 12, 2023 · 0 comments
Open

RFE: Shared inventory directory #4002

cidrblock opened this issue Aug 12, 2023 · 0 comments
Labels
Milestone

Comments

@cidrblock
Copy link
Contributor

As a user I want to specify the parent inventory directory for a scenario.

Molecule allows for this currently:

    provisioner:
      name: ansible
      inventory:
        links:
          hosts: ../../../inventory/hosts
          group_vars: ../../../inventory/group_vars/
          host_vars: ../../../inventory/host_vars/

it also sets MOLECULE_INVENTORY_FILE

Use cases:

  • Allow the user to specify a list of inventory locations that will override current molecule invetory logic and be apssed to the ansible-playbook command.
  • When using ansible as the provisioner, the invetory is constructed and would otherwise be put in the scneario specific inventory directory. This would allow for the sharing of an inventory between scenarios
  • Current use of seperate keywords (hosts/group_vars/host_vars) is confusing as ansible will resolve everything within an inventory directory if passed with -i

Related: #4000 would allow for a location to store a shared inventory.

@cidrblock cidrblock added this to the Post 6 milestone Aug 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

2 participants