Commit ac7eac3
authored
Refactor virt_volume (ansible-collections#200)
* Add new modules/virt_volume.py to manipulate storage volumes (as distinct from _virt_pool.py that manipulates storage pools)
+ Ability to create a new volume
+ Ability to clone an existing volume
+ Ability to delete an existing volume
+ Ability to get the volume XML descriptor
+ Ability to create and upload a cloud-init cdrom volume
* Fix EXAMPLES and remove custom syntax
* Do not put network config under 'network:' key
Fix line lengths to be <160, per ansible contrib guidelines
* Don't default to allowing volume shrink.
* Fix user-data file to begin with "#cloud-config"
* Use yaml.safe_load and yaml.safe_dump
* Test failure ansible-doc fixes. Update create_from to be part of create
* Fix more CI PEP failures
* More editorial fixes for CI
* Return more than just name from list_volumes
* fix PEP error
* Retain previous authors and copyright
* Fix for arbitrary capacity unit as documented (not just 'bytes') when clone_source is present.
* fix pep8 warning
---------
Co-authored-by: Dougal Seeley <git@dougalseeley.com>1 parent a352f26 commit ac7eac3
File tree
11 files changed
+536
-594
lines changed- changelogs/fragments
- plugins/modules
- tests/integration/targets/virt_volume
- defaults
- tasks
- templates
- vars
11 files changed
+536
-594
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
0 commit comments