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/lib/ansible/module_utils
Tom Melendez 7e88df7ebc Adding auth support for google-api-python-client and gcloud-python (#19090)
Support for the Google API and GCloud-Python Clients have been added.

The three libraries:
* GCloud-Python: A new function, get_google_cloud_credentials, should be used.  The credentials-object returned can be passed to any gcloud-python client.  Using this client library requires in the installation of gcloud-python.  This is preferred library for new modules.

* Google API: A new function, gcp_api_auth, should be used to take advantage of services requiring this client.  This client library should be used if the desired functionality is not available in GCloud-Python.  Using this library requires the installation of google-api-python-client.

* libcloud: Existing function, gcp_connect, should be used.  The interface and return values have not changed and existing modules (such as gce, gce_pd and gce_net) should work without modification.  Note that the credentials-fetching code has been refactored out of gcp_connect so that can be reused by all connection functions. To use this function, apache-libcloud must be installed.

Import guards have been added and will only be trigger if a user tries to use a function that is missing dependencies.

Credential-specifying mechanisms (i.e, ansible module params, env vars and libcloud secrets.py) have not changed.  They have been refactored and unit tests have been added to allow for changes going forward. We are deprecating (and removing in a subsequent release) the ability to specify credentials via the libcloud secrets file.  Also, we have deprecated (and also plan to remove in a subsequent release) the ability to use a p12 pem file for a key - the JSON format is strongly preferred.  Deprecation warnings have been added for both of these issues (see the Ansible docs on how to disable deprecation warnings).
2016-12-29 12:33:52 -05:00
..
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
_text.py Simplify surrogate check in to_text() (#18211) 2016-10-29 09:12:02 -07:00
a10.py modified POST body in axapi_authenticate_v3() and axapi_call_v3() (#18104) 2016-11-23 11:10:58 -05:00
api.py Added basic auth argument spec to utils (#15585) 2016-04-25 14:55:39 -04:00
asa.py Disable CLI errors when typing enable (#18531) 2016-12-12 15:55:22 -05:00
azure_rm_common.py Removed dict.iteritems() in several other files. 2016-12-14 08:01:45 -08:00
basic.py let chdir support relative path in more modules (#16736) 2016-12-22 00:19:50 -08:00
cloud.py CloudRetry/AWSRetry backoff decorator with unit tests (#17039) 2016-09-13 16:46:59 -04:00
cloudstack.py Removed dict.iteritems() in several other files. 2016-12-14 08:01:45 -08:00
database.py just a few spelling error changes 2015-04-28 09:36:42 -04:00
dellos6.py Update OS6 sublevels (#17735) 2016-09-24 09:27:38 -04:00
dellos9.py Fixes #18663. Bad handling of existing config in dellos9 module. (#18664) 2016-12-12 15:51:32 -05:00
dellos10.py Fixes #18663. Bad handling of existing config in dellos9 module. (#18664) 2016-12-12 15:51:32 -05:00
docker_common.py Remove duplicate declaration of human_to_bytes 2016-11-07 12:04:32 -05:00
ec2.py Removed dict.iteritems() in several other files. 2016-12-14 08:01:45 -08:00
eos.py fixes exception raised when extracting timeout value from ModuleStub in eapi (#18651) 2016-11-28 16:00:15 +00:00
exoscale.py Removed dict.iteritems() in several other files. 2016-12-14 08:01:45 -08:00
f5.py Clean up shebangs for various files. 2016-11-02 17:00:27 -07:00
facts.py removed redundant else/return 2016-12-19 15:11:29 -05:00
gcdns.py Fix import of gce/gcdns without a libcloud module 2016-07-29 13:34:09 -04:00
gce.py Fix import of gce/gcdns without a libcloud module 2016-07-29 13:34:09 -04:00
gcp.py Adding auth support for google-api-python-client and gcloud-python (#19090) 2016-12-29 12:33:52 -05:00
infinibox.py Initial Commit for Infinidat Ansible Modules (#19429) 2016-12-22 13:18:19 +00:00
ios.py Network module cleanup (#17334) 2016-09-06 13:49:48 -04:00
iosxr.py clean up iosxr shared module 2016-09-11 23:32:05 -04:00
ipa.py FreeIPA module polymorphic restructuring, Python 3 support, and small fixes. (#18542) 2016-12-04 10:43:35 +00:00
ismount.py fix typo 2016-02-08 19:10:04 +01:00
json_utils.py bugfixes to JSON junk filter, added unit/integration tests to exercise (#17834) 2016-10-02 08:03:42 -07:00
junos.py Add 'update' parameter in junos_config module (#19046) 2016-12-21 11:56:55 -05:00
known_hosts.py ssh-keyscan can fail to find keys for a host. 2016-12-01 07:53:18 -08:00
local.py cast injected json string to bytes in local modules (#19519) 2016-12-19 11:34:18 -05:00
lxd.py Clean up shebangs for various files. 2016-11-02 17:00:27 -07:00
mysql.py enable mysql connection via unix socket 2016-04-12 14:16:18 +02:00
netcfg.py allow netcfg to pass kwargs from __call__ to configure() (#17653) 2016-09-19 22:27:31 -04:00
netcli.py Hopefully clear up some junos issues. (#17616) 2016-12-15 17:07:19 -05:00
network.py Exception.message gone in 3.x (#18221) 2016-10-28 13:48:16 -04:00
nxos.py Add timeout option for nxapi (#18074) 2016-11-02 13:32:19 +00:00
openstack.py openstack: iterate through nova addresses with six (#18408) 2016-11-18 12:44:16 -08:00
openswitch.py Cleanup openswitch 2016-09-12 13:35:57 -04:00
ovirt.py cloud: ovirt: Add support to list nested entities parameters (#19300) 2016-12-14 11:15:50 -05:00
powershell.ps1 Improved Get-PendingRebootStatus 2016-11-11 14:49:01 -08:00
pycompat24.py Migrate basestring to a python3 compatible type (#17199) 2016-08-23 13:13:44 -07:00
rax.py Migrate basestring to a python3 compatible type (#17199) 2016-08-23 13:13:44 -07:00
redhat.py Remove some more unused stdlib deps. 2015-11-03 09:53:18 -08:00
service.py dont fail on missing service during check mode 2016-11-22 16:16:55 -05:00
shell.py Assorted python3 fixes for network code. (#18777) 2016-12-15 16:25:03 -05:00
six.py Some Python-3 module_utils support 2016-05-14 07:51:13 -07:00
splitter.py Changing license on module_utils/splitter.py to BSD 2016-08-13 09:56:12 -05:00
sros.py updates sros shared module 2016-09-11 23:34:46 -04:00
univention_umc.py univention: add common code for univention corporate server modules (#16172) 2016-08-27 09:42:53 +02:00
urls.py Fixes #16936 - Digest authentication not working in uri module (#18736) 2016-12-21 18:11:42 -08:00
vca.py Fux bug 18584 (#18718) 2016-12-04 10:46:41 +00:00
vmware.py Port the module snippet to python3 (#15870) 2016-05-16 08:04:43 -04:00
vyos.py fixes issue with setting the terminal length (pager) in vyos (#18546) 2016-11-21 15:47:48 +00:00