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

Missing Export of 'input_inventories' in 'filetree-create' Role #841

Closed
silvinux opened this issue Jun 7, 2024 · 0 comments
Closed

Missing Export of 'input_inventories' in 'filetree-create' Role #841

silvinux opened this issue Jun 7, 2024 · 0 comments
Labels
bug Something isn't working filetree/filetree_create inactive No movement has happened in 30 days

Comments

@silvinux
Copy link
Contributor

silvinux commented Jun 7, 2024

Summary

The parameter input_inventories and its corresponding values are not being exported into the constructed inventories as expected.

Issue Type

  • Bug Report

Ansible, Collection, Controller details

ansible --version 2.16.5

ansible-galaxy collection list

Collection                               Version
---------------------------------------- -------
infra.aap_utilities                      2.5.0  
infra.ah_configuration                   2.0.6  
infra.controller_configuration           2.7.1  
infra.eda_configuration                  1.1.0  
infra.ee_utilities                       3.1.3  

Controller version 4.5

Actual Behavior

---
controller_inventories:
  - name: "Inventory-Constructed-Instances-001"
    description: ""
    organization: "Default"
    kind: "constructed"
    prevent_instance_group_fallback: False
    source_vars:
      groups:
        target_group: group_names is search("ins001") or group_names is search("web")
      plugin: constructed
      strict: true

    update_cache_timeout: 0
    limit: "target_group"
    verbosity: 0
    variables:
      {}
...

STEPS TO REPRODUCE

1.- Create an constructed inventory with at least one inventory related.
2.- Export with role filetree-create:

ansible-navigator run playbooks/config-controller-export.yaml -i localhost -m stdout --eei quay.io/automationiberia/casc/ee-casc:latest --eev /tmp/:/tmp/ -e @vars/vault-controller.yaml

Expected Behavior

---
controller_inventories:
  - name: "Inventory-Constructed-Instances-001"
    description: ""
    organization: "Default"
    kind: "constructed"
    prevent_instance_group_fallback: False
    source_vars:
      groups:
        target_group: group_names is search("ins001") or group_names is search("web")
      plugin: constructed
      strict: true
    input_inventories:
      - "West Datacenter"
      - "East Datacenter"
    update_cache_timeout: 0
    limit: "target_group"
    verbosity: 0
    variables:
      {}
...
@silvinux silvinux added bug Something isn't working new New issue, this should be removed once reviewed filetree/filetree_create labels Jun 7, 2024
@djdanielsson djdanielsson removed the new New issue, this should be removed once reviewed label Jun 7, 2024
@github-actions github-actions bot added the inactive No movement has happened in 30 days label Jul 8, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working filetree/filetree_create inactive No movement has happened in 30 days
Projects
None yet
Development

No branches or pull requests

2 participants