community.general/lib/ansible/inventory
Sloane Hertel 9687879840
Fix inventory cache interface (#50446)
* Replace InventoryFileCacheModule with a better developer-interface

Use new interface for inventory plugins with backwards compatibility

Auto-update the backing cache-plugin if the cache has changed after parsing the inventory plugin

* Update CacheModules to use the config system and add a deprecation warning if they are being imported directly rather than using cache_loader

* Fix foreman inventory caching

* Add tests

* Add integration test to check that fact caching works normally with cache plugins using ansible.constants and inventory caching provides a helpful error for non-compatible cache plugins

* Add some developer documentation for inventory and cache plugins

* Add user documentation for inventory caching

* Add deprecation docs

* Apply suggestions from docs review

* Add changelog
2019-03-06 12:12:35 -06:00
..
__init__.py Transition inventory into plugins (#23001) 2017-05-23 17:16:49 -04:00
data.py Add toggle to control invalid character substitution in group names (#52748) 2019-03-06 11:49:40 -05:00
group.py Add toggle to control invalid character substitution in group names (#52748) 2019-03-06 11:49:40 -05:00
helpers.py add docstring for ansible.inventory.helpers.get_group_vars 2018-09-14 16:02:45 -04:00
host.py Reduce recursion within group methods 2018-04-05 18:38:44 -04:00
manager.py Fix inventory cache interface (#50446) 2019-03-06 12:12:35 -06:00