-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add ovirt_datacenters and ovirt_datacenters_facts modules #3146
Conversation
2378cb1
to
1c1feaf
Compare
ready_for_review |
Thanks @machacekondra for this new module. When this module receives 'shipit' comments from two community members and any 'needs_revision' comments have been resolved, we will mark for inclusion. [This message brought to you by your friendly Ansibull-bot.] |
0877b58
to
440223f
Compare
shipit |
Thanks @machacekondra. Since you are one of the maintainers (@machacekondra) of this module and you commented with "shipit", we are marking this PR for inclusion. [This message brought to you by your friendly Ansibull-bot.] |
- ovirt_datacenters: | ||
name: mydatacenter | ||
local: True | ||
compatibility_version: 4.1 |
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.
Please use version 4.0, as 4.1 may not be released before Ansible 2.3
# Examples don't contain auth parameter for simplicity, | ||
# look at ovirt_auth module to see how to reuse authentication: | ||
|
||
# Gather facts about all datacenters named C<production*>: |
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.
I'd rephrase to: 'Gather facts about all data centers which names start with C:'
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.
Generally looks good, just 2 small doc issues
898be08
to
57c7217
Compare
# Examples don't contain auth parameter for simplicity, | ||
# look at ovirt_auth module to see how to reuse authentication: | ||
|
||
# Gather facts about all data centers which names start with C<production*>: |
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.
'C(production*)' -> 'C(production)'
57c7217
to
b3f6939
Compare
# Examples don't contain auth parameter for simplicity, | ||
# look at ovirt_auth module to see how to reuse authentication: | ||
|
||
# Gather facts about all data centers which names start with C<production>: |
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.
C<production>
-> C(production)
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.
done
b3f6939
to
2136bac
Compare
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.
Looks good to me, thanks!
Thanks again to @machacekondra. This module is going into community review. We notice that you are one of the maintainers (@machacekondra) of this module, so when you think it's ready, please comment "shipit" and we will consider it for merging. [This message brought to you by your friendly Ansibull-bot.] |
|
||
try: | ||
import ovirtsdk4 as sdk | ||
import ovirtsdk4.types as otypes |
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.
Please add a conditional on these (similar to the AWS modules) so your module doesn't raise ImportError at load.
Looks good overall, just add a failure mode for when the oVirt SDK isn't installed. |
2136bac
to
d220842
Compare
shipit |
Thanks @machacekondra. Since you are one of the maintainers (@machacekondra) of this module and you commented with "shipit", we are marking this PR for inclusion. [This message brought to you by your friendly Ansibull-bot.] |
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.
👍
d220842
to
fc0dfd0
Compare
fc0dfd0
to
b474ccf
Compare
ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
SUMMARY
Add ovirt_datacenters and ovirt_datacenters_facts modules to manage oVirt datacenters.