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

feat: add feature to allow template username and password on inventory #1837

Merged

Conversation

paulojmdias
Copy link
Contributor

@paulojmdias paulojmdias commented Sep 6, 2023

SUMMARY
  • This enables using of Jinja2 for templating username and password
ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME
  • community.vmware.vmware_vm_inventory
  • community.vmware.vmware_host_inventory
ADDITIONAL INFORMATION
  • Currently, the username and password can be set by Environment Variables, plain or using Ansible Vault. In an inventory using LDAP credentials, with multiple environments and consequently LDAP servers, it's a pain to manage those credentials in a safer way and at the same time dynamically. Also if someone is not using Ansible Vault, allows usage of different ways for storing those secrets safely. Supporting Jinja2, allows anyone to use different lookup plugins that best fit their needs.

@paulojmdias
Copy link
Contributor Author

recheck

@softwarefactory-project-zuul
Copy link

Build failed.
https://ansible.softwarefactory-project.io/zuul/buildset/4d3e33b421b34844a129ae772603b96f

⚠️ ansible-tox-linters CANCELED
build-ansible-collection FAILURE in 7m 52s
⚠️ ansible-test-cloud-integration-vcenter7_only-stable215 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_2esxi-stable215 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_1esxi-stable215_1_of_2 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_1esxi-stable215_2_of_2 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-galaxy-importer SKIPPED Skipped due to failed job build-ansible-collection

@paulojmdias
Copy link
Contributor Author

recheck

@paulojmdias
Copy link
Contributor Author

recheck

@paulojmdias
Copy link
Contributor Author

@mariolenz could you please help me understand why tests are failing?

The error is weird, something is wrong with the service Failed to create a virtual machine : There are no active hosts in the cluster..

@paulojmdias
Copy link
Contributor Author

recheck

@paulojmdias
Copy link
Contributor Author

recheck

@paulojmdias
Copy link
Contributor Author

recheck

@ihumster
Copy link
Collaborator

ihumster commented Sep 8, 2023

recheck

@paulojmdias
Copy link
Contributor Author

recheck

@paulojmdias
Copy link
Contributor Author

recheck

@paulojmdias
Copy link
Contributor Author

recheck

@paulojmdias
Copy link
Contributor Author

recheck

@paulojmdias
Copy link
Contributor Author

@ihumster could you please help me understand why tests are failing?

@mariolenz
Copy link
Collaborator

@paulojmdias At least the last three failures look like there's some weird problem in the CI pipeline itself to me... again 😫

@paulojmdias
Copy link
Contributor Author

@paulojmdias At least the last three failures look like there's some weird problem in the CI pipeline itself to me... again 😫

😢 Can I help in some way?

@ihumster
Copy link
Collaborator

Nope. Only recheck and catch your luck.

@ihumster
Copy link
Collaborator

recheck

@ihumster
Copy link
Collaborator

Nice. I'm lacker =)

@mariolenz If you have no questions about the code (I don’t seem to have any), then you can probably approve this merge.

@paulojmdias
Copy link
Contributor Author

Thank you @ihumster. 🙏

If you have any questions please let me know @mariolenz.

Copy link
Collaborator

@mariolenz mariolenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks @paulojmdias!

@ihumster could you please test if you can approve? And maybe try to add the merge label.

@softwarefactory-project-zuul
Copy link

Build succeeded (gate pipeline).
https://ansible.softwarefactory-project.io/zuul/buildset/c567a66d77294484aa9899445a14410e

✔️ ansible-tox-linters SUCCESS in 8m 54s
✔️ build-ansible-collection SUCCESS in 7m 49s
✔️ ansible-galaxy-importer SUCCESS in 3m 26s

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 3530e1c into ansible-collections:main Sep 12, 2023
10 checks passed
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.

3 participants