-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Added LVM Physical Volume module #10070
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
base: main
Are you sure you want to change the base?
Conversation
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.
Thanks for your contribution! Two first quick suggestions:
- Please take a look at https://github.com/ansible-collections/community.general/blob/main/CONTRIBUTING.md#creating-new-modules-or-plugins in case you didn't.
- How about naming the module
lvm_pv
?
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.
Hi @klention
Thanks for your contribution. I left some initial comments.
You might want to consider using CmdRunner
. See https://docs.ansible.com/ansible/latest/collections/community/general/docsite/guide_cmdrunner.html for more details.
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.
A couple of (minor) suggestions, other than that LGTM
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 don't forget to add tests, otherwise this won't get merged. (See https://github.com/ansible-collections/community.general/blob/main/CONTRIBUTING.md#creating-new-modules-or-plugins.)
ping @klention |
SUMMARY
This pull request introduces a new
lvm_pv
module for managing LVM Physical Volumes. The module provides comprehensive functionality for:Key features:
pvcreate
,pvremove
,pvresize
)The module fills a gap in Ansible's storage management capabilities, complementing the existing
lvg
andlvol
modules.ISSUE TYPE
COMPONENT NAME
lvm_pv
ADDITIONAL INFORMATION
Example usage: