community.general/lib/ansible
Jason Vanderhoof 7c8e365dff Conjur Lookup Plugin (#34280)
* Imported lookup plugin from Role

* Plugin cleanup, including:
* Use existing Python YAML parsing
* Remove environment variables as connection options
* Added initial debugging information

* Reworked the lookup plugin using the Python Request library.  As it's available through Ansible, it makes communication with Conjur much more straight forward.

* Removed un-used libraries

* Fixed linting issues

* Standardized output on `format` and insure it works for 2.6, 2.7, and 3.x.

* Use quote_plus from the six library for improved python 2/3 behavior.

* Refactored identity & configuration to prefer user's file. This also includes a refactor to remove an un-needed dictionary merge method.

* Removed `requests` in favor of `ansible.module_utils.urls`.

* Refactored netrc loading to warn if host is not present.

* Tests and a refactor to support easier testing.

* Added reference to website

* Fixed two linting errors

* Fixed an extra line found by linting

* Updated file write to use binary to insure config files are written correctly

* Resolved linting issues

* Refactored config & identity loading to take advantage of plugin options

* Cleanup a bunch of small items caught by linting

* Removed extra line caught by linting

* Swapped in pytest and added some tests with mocked network responses

* Pushing to see if this approach works better...

* Refactored be open_url mocking based on feedback

* Fixed a couple linting issues & refactored mocking into each method to attempt to resolve a failing test

* Use a generic MagicMock for python 2.6

* Fixes doc typo

require -> required

* Use `type: path` in identity_file and config_file

Also removes `expanduser` calls below (which will now be called automatically on
paths.)

* Defines maintainers for conjur_variable plugin

* BOTMETA.yml:
** defines $team_cyberark_conjur as maintainers of Conjur Variable plugin
** adds myself and @jvanderhoof to that team

* Adds URLs to relevant documentation for Conjur Variable lookup plugin

* Clarifies "the server," "the machine" -> "controlling host"

The machine identity used is that of the Ansible controlling host, not any
server being provisioned or instructed. This documentation change aims to make
that relationship clear.

* Adds response code to exception message on authentication failure

* Enhances exception messages to specify the controlling host

These error messages are less likely to confuse a user as to which machine is
associated with the files, identities, and configurations being described.

* Adds ANSIBLE_METADATA for Conjur variable lookup plugin
2018-01-23 10:04:57 -06:00
..
cli add a vault --encrypt-vault-to specify vault id to use for encrypt (#31067) 2018-01-22 17:12:10 -05:00
compat
config Move module_set_locale and module_lang back to global 2018-01-22 18:38:15 -08:00
errors Make AnsibleActionDone a private exception 2018-01-22 23:36:34 -08:00
executor win_become: another option to support become flags for runas (#34551) 2018-01-19 13:58:10 -08:00
galaxy Catch exception comparing role versions, and provide a user friendly error message. Fixes #32301 (#34427) 2018-01-11 17:41:23 -06:00
inventory add inventory caching & use in virtualbox inventory plugin (#34510) 2018-01-22 19:33:14 -05:00
module_utils Ansible 2.5 feature support for dellos9 (#34880) 2018-01-23 13:59:27 +00:00
modules Ucs vlans and integration tests (#35071) 2018-01-23 16:32:32 +01:00
parsing Implement plugin filtering 2018-01-22 16:54:53 -08:00
playbook Temporary (#31677) 2018-01-15 21:15:04 -08:00
plugins Conjur Lookup Plugin (#34280) 2018-01-23 10:04:57 -06:00
template
utils Azure: added auth_source to override the source of the credentials (#35213) 2018-01-22 23:38:05 -08:00
vars
__init__.py
constants.py Move module_set_locale and module_lang back to global 2018-01-22 18:38:15 -08:00
release.py