1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/plugins/module_utils
patchback[bot] 40b5967fc3
[PR #5832/ae5090d9 backport][stable-6] New modules btrfs_subvolume / btrfs_info (#6376)
New modules btrfs_subvolume / btrfs_info (#5832)

* Initial implementation for new modules btrfs_subvolume and btrfs_info

* Improve/flesh out documentation. Add ability to target filesystem by uuid, label or device. Update tests to test targeting filesystem by each supported parameter and when only mountpoint.

* Updates for btrfs modules. Add missing copyright notices. Switch options to contains in return documentation. Update btrfs_subvolume to always use closest parent mount.

* Add maintainers for btrfs module(s) and remove unused class member cause lint failure.

* Add changelog fragment. Attempt to only run against the VMs as part of CI.

* Updates per code review. Remove changelog fragment. Switch use of map to list comprehension. Add trailing comma to last item in multi-line dicts. Clean up documentation with complete senstences for descriptions and correct/consistent use of macros.

* Improved error handling in btrfs_subvolume module: add custom exception type, favor exceptions over immediate call to fail_json and add single top level return for failure scenarios. Normalize name and snapshot_source parameters early in module execution and remove unecessary duplicate normalization throughout processing.

* Add azp/posix/3 to aliases per feedback

* Clean up automatic mounting. Prevent automount when check_mode=True. Immediately fail if a mount is identified as required and automount=True. Identify the minimal subset of subvolumes that need to be mounted instead of just finding a single common root.

* Skip btrfs_subvolume integration tests if btrfs-progs isn't successfully installed.

* Bump version_added for btrfs modules to 6.6.0. Ensure consistent trailing punctuation for module descriptions and document check_mode behavior as attribute description rather than a module level note.

* Remove unused imports from btrfs_subvolume module.

* Fix import.

* Docs improvements.

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit ae5090d90e)

Co-authored-by: Gregory Furlong <50386272+gnfzdz@users.noreply.github.com>
2023-04-20 07:12:45 +02:00
..
identity/keycloak [PR #5814/7d3e6d1b backport][stable-6] keycloak_group: support keycloak subgroups (#6089) 2023-02-25 14:03:38 +01:00
mh [PR #5981/68d0cac3 backport][stable-6] Ignore more unnecessary import warnings (#5983) 2023-02-12 22:13:22 +01:00
net_tools/pritunl Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
oracle [PR #5940/2b8ac3c6 backport][stable-6] Remove unneccessary imports (#5976) 2023-02-12 20:22:44 +01:00
remote_management/lxca Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
source_control Remove deprecated features, bump version to 6.0.0 (#5326) 2022-10-25 08:07:21 +02:00
storage Fix copyright lines (make sure 'Copyright' is there). (#5083) 2022-08-05 22:12:10 +02:00
_mount.py Add remaining copyright statements, add licenses sanity test (#5098) 2022-08-08 23:23:08 +02:00
_stormssh.py [PR #6117/3862de3f backport][stable-6] Removes dependency on StormSSH (#6179) 2023-03-12 15:50:07 +01:00
alicloud_ecs.py multiple modules: removed unused imports (#5240) 2022-09-09 22:23:48 +02:00
btrfs.py [PR #5832/ae5090d9 backport][stable-6] New modules btrfs_subvolume / btrfs_info (#6376) 2023-04-20 07:12:45 +02:00
cloud.py Fix copyright lines (make sure 'Copyright' is there). (#5083) 2022-08-05 22:12:10 +02:00
cmd_runner.py [PR #5647/be22ca06 backport][stable-6] cmd_runner: allow bool format to pass alternate (false) value (#5650) 2022-12-04 12:39:30 +01:00
csv.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
database.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
deps.py add dependency manager (#5535) (#5574) 2022-11-23 07:37:45 +01:00
dimensiondata.py [PR #5940/2b8ac3c6 backport][stable-6] Remove unneccessary imports (#5976) 2023-02-12 20:22:44 +01:00
gandi_livedns_api.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
gconftool2.py gconftool2: refactored to use ModuleHelper + CmdRunner (#5545) (#5551) 2022-11-23 07:37:27 +01:00
gitlab.py [PR #5667/c3bc172b backport][stable-6] respect new variable property in gitlab_group_variable and gitlab_project_variable (#5679) 2022-12-10 22:42:19 +01:00
heroku.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
hwc_utils.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
ibm_sa_utils.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
ilo_redfish_utils.py [PR #6115/f95b8ab9 backport][stable-6] Adding CheckiLORebootStatus functionality to ilo_redfish_command (#6339) 2023-04-16 13:39:44 +02:00
influxdb.py [PR #5940/2b8ac3c6 backport][stable-6] Remove unneccessary imports (#5976) 2023-02-12 20:22:44 +01:00
ipa.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
jenkins.py jenkins_plugin: fix sanity checks (#5565) (#5575) 2022-11-23 07:37:52 +01:00
known_hosts.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
ldap.py [PR #6185/512bf4b7 backport][stable-6] ldap moduls: add optional ca_cert_file option (#6217) 2023-03-22 13:15:48 +01:00
linode.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
lxd.py [PR #6034/f0529dcb backport][stable-6] lxd plugins and modules: fix TLS/SSL context creation (#6084) 2023-02-25 11:41:35 +01:00
manageiq.py manageiq_tags_info: new module (#5368) 2022-10-23 11:33:07 +02:00
memset.py [PR #6114/6cf67448 backport][stable-6] memset*.py: Fixed URLError handling (#6157) 2023-03-08 13:58:39 +01:00
module_helper.py [PR #5981/68d0cac3 backport][stable-6] Ignore more unnecessary import warnings (#5983) 2023-02-12 22:13:22 +01:00
ocapi_utils.py [PR #5754/59a9d342 backport][stable-6] Remote management modules for OCAPI-based devices. (#5869) 2023-01-22 17:23:28 +01:00
oneandone.py Fix more copyright lines, add more default copyright lines (#5095) 2022-08-08 14:24:58 +02:00
onepassword.py Fix more copyright lines, add more default copyright lines (#5095) 2022-08-08 14:24:58 +02:00
oneview.py [PR #5940/2b8ac3c6 backport][stable-6] Remove unneccessary imports (#5976) 2023-02-12 20:22:44 +01:00
online.py Fix more copyright lines, add more default copyright lines (#5095) 2022-08-08 14:24:58 +02:00
opennebula.py [PR #6294/cb3ca05b backport][stable-6] one_vm: fix syntax error when creating VMs with a more complex template (#6342) 2023-04-16 13:40:09 +02:00
pipx.py [PR #6308/f93a1bf5 backport][stable-6] pipx: Add support for system_site_packages (#6311) 2023-04-10 07:26:31 +00:00
proxmox.py [PR #5940/2b8ac3c6 backport][stable-6] Remove unneccessary imports (#5976) 2023-02-12 20:22:44 +01:00
puppet.py [PR #6293/ea8720f5 backport][stable-6] Add skip_tags option to Puppet module (#6327) 2023-04-13 05:09:28 +00:00
pure.py [PR #5940/2b8ac3c6 backport][stable-6] Remove unneccessary imports (#5976) 2023-02-12 20:22:44 +01:00
rax.py rax_scaling_group: fix sanity check (#5563) (#5569) 2022-11-23 07:37:12 +01:00
redfish_utils.py [PR #6208/33ccabed backport][stable-6] added hpe thermal config and fan percent min (#6237) 2023-03-25 23:36:47 +01:00
redhat.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
redis.py Fix linting errors; fix some real bugs (#5111) 2022-08-12 11:07:30 +02:00
rundeck.py [PR #6300/a35542d0 backport][stable-6] Rundeck modules fixes and improvements (#6343) 2023-04-16 13:47:47 +02:00
saslprep.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
scaleway.py [PR #5499/c4b18361 backport][stable-6] scaleway module utils: make function private that should be removed (#5860) 2023-01-18 21:44:08 +01:00
ssh.py [PR #5720/6383c823 backport][stable-6] ssh_config: fixed sanity (#5726) 2022-12-23 06:41:39 +01:00
univention_umc.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
utm_utils.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
version.py [PR #5940/2b8ac3c6 backport][stable-6] Remove unneccessary imports (#5976) 2023-02-12 20:22:44 +01:00
vexata.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
wdc_redfish_utils.py WDC Redfish support for setting the power mode. (#5145) 2022-09-03 12:45:03 +02:00
xenserver.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
xfconf.py Fix copyright lines (make sure 'Copyright' is there). (#5083) 2022-08-05 22:12:10 +02:00