diff options
author | Sloane Hertel <shertel@redhat.com> | 2019-11-04 11:41:14 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-04 11:41:14 -0500 |
commit | c1f1b2029c425665622608001207267e8f2dc176 (patch) | |
tree | 762d54bac18c4d072bc12e4f5ab17e4f389c1c32 /lib/ansible/constants.py | |
parent | 39bf09517a23fdaba5a205f289b39a561ea8e6b8 (diff) | |
download | ansible-c1f1b2029c425665622608001207267e8f2dc176.tar.gz |
Support vars plugins in collections (#61078)
* Move var plugins handling to a separate file
* Allow var plugins to require whitelisting
* Add global configuration ('demand', 'start') for users to control when they execute
* Add 'stage' configuration ('all', 'task', 'inventory') for users to control on a per-plugin basis when they execute
* Update ansible-inventory and InventoryManager to the global and stage configuration
* Update host_group_vars to use stage configuration and whitelisting
* Add documentation for using new options and to the developer's guide
* Add integration tests to exercise whitelisting and the new configuration options, using vars plugins in collections, and maintain backward compatibility
* Changelog
Co-Authored-By: Brian Coca <brian.coca+git@gmail.com>
Co-Authored-By: Sandra McCann <samccann@redhat.com>
Diffstat (limited to 'lib/ansible/constants.py')
-rw-r--r-- | lib/ansible/constants.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ansible/constants.py b/lib/ansible/constants.py index 051d7258cf..34446691b4 100644 --- a/lib/ansible/constants.py +++ b/lib/ansible/constants.py @@ -102,9 +102,9 @@ DEFAULT_PASSWORD_CHARS = to_text(ascii_letters + digits + ".,:-_", errors='stric DEFAULT_REMOTE_PASS = None DEFAULT_SUBSET = None # FIXME: expand to other plugins, but never doc fragments -CONFIGURABLE_PLUGINS = ('become', 'cache', 'callback', 'cliconf', 'connection', 'httpapi', 'inventory', 'lookup', 'shell') +CONFIGURABLE_PLUGINS = ('become', 'cache', 'callback', 'cliconf', 'connection', 'httpapi', 'inventory', 'lookup', 'shell', 'vars') # NOTE: always update the docs/docsite/Makefile to match -DOCUMENTABLE_PLUGINS = CONFIGURABLE_PLUGINS + ('module', 'strategy', 'vars') +DOCUMENTABLE_PLUGINS = CONFIGURABLE_PLUGINS + ('module', 'strategy') IGNORE_FILES = ("COPYING", "CONTRIBUTING", "LICENSE", "README", "VERSION", "GUIDELINES") # ignore during module search INTERNAL_RESULT_KEYS = ('add_host', 'add_group') LOCALHOST = ('127.0.0.1', 'localhost', '::1') |