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/tests/unit/plugins
Emmanuel Benoît 761171b532
Proxmox inventory filters (#4352)
* Proxmox inventory plugin - Initial implementation of filters

  * This is an attempt at implementing something that would satisfy
    issue #3553
  * A rather massive code rewrite was needed as adding the host to the
    inventory, setting its variables and adding it to various groups
    used to be done as soon as the information became available. This is
    not possible when it is not known whether the host should be added
    to the inventory before all data has been gathered.
  * The code for both LXC containers and Qemu VMs was refactored into a
    single loop.
  * Helper functions to generate group and fact names were added.

* Proxmox inventory plugin - Warnings for filter errors

  * When an error occurs while compositing a filter's value and strict
    mode is disabled, display a warning.

* Proxmox inventory plugin - Fixed pool groups building

  * Hosts that were excluded by the host filters were still being added
    to pool groups, causing errors.

* Proxmox inventory plugin - Refactoring

  * Split off the VM/container handling code from the
    `_populate()` method
  * Split off pool group attribution from the `_populate()` method

* Proxmox inventory filters - Changelog fragment

* proxmox inventory - Simplify _can_add_host() method

Co-authored-by: Felix Fontein <felix@fontein.de>

Co-authored-by: Felix Fontein <felix@fontein.de>
2022-03-15 12:22:43 +01:00
..
become Use become test framework for sudosu tests. (#2629) 2021-05-26 10:34:35 +02:00
cache redis cache - better parsing of connection uri (#2579) 2021-05-26 07:07:09 +02:00
callback [opentelemetry][callback] Support loops error handling (#3599) 2021-10-27 07:51:49 +02:00
connection Removal of docker content for 2.0.0 (#1304) 2020-11-23 13:03:19 +01:00
inventory Proxmox inventory filters (#4352) 2022-03-15 12:22:43 +01:00
lookup RevBits PAM Secret Server Plugin (#3405) 2021-11-22 13:49:51 +01:00
module_utils Remove and redirect all infoblox/nios content (#3592) 2021-10-21 08:02:06 +02:00
modules pacman: implement change detection for update_cache=true; add cache_updated return value (#4337) 2022-03-15 05:38:59 +01:00
__init__.py Initial commit 2020-03-09 09:11:07 +00:00