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

Support Prism Central category mapping for ansible groups #151

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

engin
Copy link

@engin engin commented Mar 4, 2022

Hello,

This PR adds support to retrieve Prism Central Category mapping to Ansible inventory group.

  • Define inventory plugin variable group_category default ansible_group
  • Create category in Prism Central and assign possible group names
  • Configure VM categories using previously created group values

@bhati-pradeep
Copy link
Collaborator

@Gevorg-Khachatryan-97 Please review. Create a new Issue for same.

@bhati-pradeep
Copy link
Collaborator

bhati-pradeep commented Sep 15, 2022

@engin , we have ansible constructed inventory feature patch going in next release ( #233 ). This will enable creation of custom groups based on expressions/conditions on vm information.

The use case of groups based on category and vm name can be achieved using constructed inventory feature given we have category and vm name in vm information for which created a new issue (ref. #274 ). Can you make changes as per that ?

For example, using ansible constructed inventory:

groups:
       category_based_group: "test" in category_mapping
groups:
       vm_name_based_group: "test" in name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants