community.general/lib/ansible
William Albert 409d95d67e Refactored gce util module to support other GCP services (#15924)
This is a refactoring of the existing GCE utility module to support other projects on Google Cloud Platform.

The previous gce.py module was hard-coded specifically for GCE, and attempting to use it with other projects in GCP failed.

See https://github.com/ansible/ansible/pull/15918#issuecomment-220165913  for more detail.

This has also been an issue for others in the past, although they've handled it by simply
duplicating some of the logic of gce.py in their own modules.

-   The existing gce.py module was renamed to gcp.py, and modified to remove any 
     imports or other code that refers to libcloud.compute or GCE (the GCE_* params were
     retained for compatibility). I also renamed the gce_connect function to gcp_connect, 
     and modified the function signature to make supplying a provider, driver, and agent 
     information mandatory.

-  A new gce.py module was created to handle connectivity to GCE. It imports the
   appropriate libcloud.compute providers and drivers, and then passes them on
   to gcp_connect in gcp.py. The constants and function signatures are the same
   as the old gce.py, so compatibility with existing modules is retained.

- A new gcdns.py module was created to support PR ansible/ansible-modules-extras#2252
  for two new Google Cloud DNS modules, and to demonstrate support for a non-GCE 
  Google Cloud service. It follows the same basic structure as the new gce.py module,
  but imports from libcloud.dns instead.
2016-07-28 12:54:39 -04:00
..
cli added check and diff mode control to console 2016-07-25 08:05:56 -04:00
compat Bundle a new version of python-six for compatibility along with some code to make it easy for distributions to override the bunndled copy if they have a new enough version. 2015-10-16 08:21:28 -07:00
config Making the switch to v2 2015-05-03 21:47:26 -05:00
errors Fix some typos (#16498) 2016-06-29 14:31:25 -04:00
executor (re)allow ansible_python_interpreter to contain more than 1 arg (#16247) 2016-07-26 07:46:16 -07:00
galaxy Fixes #163 in galaxy-issues 2016-07-21 14:04:17 -04:00
inventory Make returning results after loading vars optional 2016-07-21 14:25:57 +01:00
module_utils Refactored gce util module to support other GCP services (#15924) 2016-07-28 12:54:39 -04:00
modules Update submodule refs 2016-07-26 05:22:59 -07:00
parsing warn when searching for an empty string or null 2016-07-26 08:26:07 -04:00
playbook add check_mode option for tasks (#16056) 2016-07-22 20:40:14 -04:00
plugins set cwd to task's basedir (#16805) 2016-07-25 08:11:45 -04:00
template allow spaces before the filter string (#16312) 2016-06-15 14:17:17 -04:00
utils Colorize around text (#16415) 2016-07-23 18:09:20 -04:00
vars Fix bug where getting role vars does not follow the dep chain 2016-07-19 16:59:11 -04:00
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
constants.py added check and diff mode control to console 2016-07-25 08:05:56 -04:00
release.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
test-requirements.txt Making the switch to v2 2015-05-03 21:47:26 -05:00