-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Added OpenNebula inventory plugin #810
Added OpenNebula inventory plugin #810
Conversation
c3298be
to
6adaf5b
Compare
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@feldsam thanks for the PR!
In additional to added, all new stuff should have ci or unit tests
looks like unit tests (with |
Hello, I never do it, would you point me to some example? Thanks |
Hi, sure, there are a lot of examples living in |
As concrete examples for inventory plugins, see https://github.com/ansible-collections/community.general/blob/main/tests/unit/plugins/inventory/test_proxmox.py and https://github.com/ansible-collections/community.general/blob/main/tests/unit/plugins/inventory/test_stackpath_compute.py. These were added recently (and you can see that one of them was inspired by the other :) ). |
Thank you guys, I look into it in one-two weeks. |
@feldsam are you still working on this? needs_info |
@felixfontein Hi, I am just asked community to help write tests for this plugin. |
Signed-off-by: Kristian Feldsam <feldsam@gmail.com>
Signed-off-by: Kristian Feldsam <feldsam@gmail.com>
c286223
to
6e03bc5
Compare
This comment has been minimized.
This comment has been minimized.
Signed-off-by: Kristian Feldsam <feldsam@gmail.com>
Hi @felixfontein I just added unit tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just two things that need to be updated, I think then this is ready for merging!
Co-authored-by: Felix Fontein <felix@fontein.de>
@felixfontein done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks @feldsam !!
Backport to stable-3: 💚 backport PR created✅ Backport PR branch: Backported as #3460 🤖 @patchback |
* Added OpenNebula inventory plugin Signed-off-by: Kristián Feldsam <feldsam@gmail.com> * Apply suggestions from code review Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Apply suggestions from code review Co-authored-by: Felix Fontein <felix@fontein.de> * Removed matching inventory yaml files ending with "one" Too general word * Apply suggestions from code review Co-authored-by: Felix Fontein <felix@fontein.de> * Apply suggestions from code review Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com> Signed-off-by: Kristian Feldsam <feldsam@gmail.com> * Added BOTMETA Signed-off-by: Kristian Feldsam <feldsam@gmail.com> * Moved import Signed-off-by: Kristian Feldsam <feldsam@gmail.com> * Fix indentation problem Signed-off-by: Kristian Feldsam <feldsam@gmail.com> * Added group_by_labels, refactored so can be unit tested Signed-off-by: Kristian Feldsam <feldsam@gmail.com> * Added unit tests Signed-off-by: Kristian Feldsam <feldsam@gmail.com> * Removed blank line Signed-off-by: Kristian Feldsam <feldsam@gmail.com> * Apply suggestions from code review Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com> (cherry picked from commit 806f1ea)
@feldsam thanks for contributing this! |
* Added OpenNebula inventory plugin Signed-off-by: Kristián Feldsam <feldsam@gmail.com> * Apply suggestions from code review Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Apply suggestions from code review Co-authored-by: Felix Fontein <felix@fontein.de> * Removed matching inventory yaml files ending with "one" Too general word * Apply suggestions from code review Co-authored-by: Felix Fontein <felix@fontein.de> * Apply suggestions from code review Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com> Signed-off-by: Kristian Feldsam <feldsam@gmail.com> * Added BOTMETA Signed-off-by: Kristian Feldsam <feldsam@gmail.com> * Moved import Signed-off-by: Kristian Feldsam <feldsam@gmail.com> * Fix indentation problem Signed-off-by: Kristian Feldsam <feldsam@gmail.com> * Added group_by_labels, refactored so can be unit tested Signed-off-by: Kristian Feldsam <feldsam@gmail.com> * Added unit tests Signed-off-by: Kristian Feldsam <feldsam@gmail.com> * Removed blank line Signed-off-by: Kristian Feldsam <feldsam@gmail.com> * Apply suggestions from code review Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com> (cherry picked from commit 806f1ea) Co-authored-by: Kristian Feldsam <feldsam@gmail.com>
SUMMARY
Added new inventory plugin for use with OpenNebula based clouds
ISSUE TYPE
COMPONENT NAME
opennebula inventory plugin
REFS ansible/ansible#66394