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/inventory
patchback[bot] fb61da5246
Proxmox inventory filters (#4352) (#4364)
* 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>
(cherry picked from commit 761171b532)

Co-authored-by: Emmanuel Benoît <tseeker@nocternity.net>
2022-03-15 12:34:24 +01:00
..
fixtures LXD inventory: Support virtual machines (#3519) (#3900) 2021-12-14 06:42:47 +01:00
__init__.py Initial commit 2020-03-09 09:11:07 +00:00
test_cobbler.py add inventory plugin unit test test_verify_file (#2773) 2021-06-10 22:05:04 +02:00
test_icinga2.py Added new feature for ansible_user and ansible_port in Icinga2 inventory source (#4088) (#4130) 2022-01-31 20:22:59 +01:00
test_linode.py Fix linode inventory filtering (#4336) (#4356) 2022-03-14 20:56:13 +01:00
test_lxd.py LXD inventory: Support virtual machines (#3519) (#3900) 2021-12-14 06:42:47 +01:00
test_opennebula.py Added OpenNebula inventory plugin (#810) 2021-09-28 16:32:15 +02:00
test_proxmox.py Proxmox inventory filters (#4352) (#4364) 2022-03-15 12:34:24 +01:00
test_stackpath_compute.py add inventory plugin unit test test_verify_file (#2773) 2021-06-10 22:05:04 +02:00
test_xen_orchestra.py Xen orchestra inventory: Added groups, keyed_groups and compose support (#3766) (#3772) 2021-11-22 19:27:00 +01:00