summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Stephen <alexstephen@google.com>2019-03-05 11:12:13 -0800
committerToshio Kuratomi <a.badger@gmail.com>2019-04-23 13:49:26 -0600
commit2e4c1dc3cbf7fbdde1fdcf544627a5b2310c8964 (patch)
treea9bc1598ca8501384cfc16183b10b5b7a43d23ab
parent2e80441948d5ff327f29b07ae422ceb2a5ac8579 (diff)
downloadansible-2e4c1dc3cbf7fbdde1fdcf544627a5b2310c8964.tar.gz
GCP Deprecations
-rw-r--r--docs/docsite/rst/porting_guides/porting_guide_2.8.rst12
-rw-r--r--lib/ansible/modules/cloud/google/_gcdns_record.py (renamed from lib/ansible/modules/cloud/google/gcdns_record.py)6
-rw-r--r--lib/ansible/modules/cloud/google/_gcdns_zone.py (renamed from lib/ansible/modules/cloud/google/gcdns_zone.py)6
-rw-r--r--lib/ansible/modules/cloud/google/_gcp_backend_service.py (renamed from lib/ansible/modules/cloud/google/gcp_backend_service.py)6
-rw-r--r--lib/ansible/modules/cloud/google/_gcp_forwarding_rule.py (renamed from lib/ansible/modules/cloud/google/gcp_forwarding_rule.py)6
-rw-r--r--lib/ansible/modules/cloud/google/_gcp_healthcheck.py (renamed from lib/ansible/modules/cloud/google/gcp_healthcheck.py)8
-rw-r--r--lib/ansible/modules/cloud/google/_gcp_target_proxy.py (renamed from lib/ansible/modules/cloud/google/gcp_target_proxy.py)6
-rw-r--r--lib/ansible/modules/cloud/google/_gcp_url_map.py (renamed from lib/ansible/modules/cloud/google/gcp_url_map.py)6
-rw-r--r--lib/ansible/modules/cloud/google/_gcspanner.py (renamed from lib/ansible/modules/cloud/google/gcspanner.py)6
-rw-r--r--test/sanity/pylint/ignore.txt4
-rw-r--r--test/sanity/validate-modules/ignore.txt28
-rw-r--r--test/units/modules/cloud/google/test_gcp_forwarding_rule.py2
-rw-r--r--test/units/modules/cloud/google/test_gcp_url_map.py2
13 files changed, 70 insertions, 28 deletions
diff --git a/docs/docsite/rst/porting_guides/porting_guide_2.8.rst b/docs/docsite/rst/porting_guides/porting_guide_2.8.rst
index 2def4013d3..3352f58542 100644
--- a/docs/docsite/rst/porting_guides/porting_guide_2.8.rst
+++ b/docs/docsite/rst/porting_guides/porting_guide_2.8.rst
@@ -236,8 +236,16 @@ The following modules will be removed in Ansible 2.12. Please update your playbo
* ``foreman`` use `foreman-ansible-modules <https://github.com/theforeman/foreman-ansible-modules>`_ instead.
* ``katello`` use `foreman-ansible-modules <https://github.com/theforeman/foreman-ansible-modules>`_ instead.
* ``github_hooks`` use :ref:`github_webhook <github_webhook_module>` and :ref:`github_webhook_facts <github_webhook_facts_module>` instead.
-* ``digital_ocean`` use :ref:`digital_ocean_droplet <digital_ocean_droplet_module>` instead.
-* ``gce`` use :ref:`gcp_compute_instance <gcp_compute_instance_module>` instead.
+* ``digital_ocean`` use :ref `digital_ocean_droplet <digital_ocean_droplet_module>` instead.
+* ``gce`` use :ref `gcp_compute_instance <gcp_compute_instance_module>` instead.
+* ``gcspanner`` use :ref `gcp_spanner_instance <gcp_spanner_instance_module>` and :ref `gcp_spanner_database <gcp_spanner_database_module>` instead.
+* ``gcdns_record`` use :ref `gcp_dns_resource_record_set <gcp_dns_resource_record_set_module>` instead.
+* ``gcdns_zone`` use :ref `gcp_dns_managed_zone <gcp_dns_managed_zone_module>` instead.
+* ``gcp_forwarding_rule`` use :ref `gcp_compute_global_forwarding_rule <gcp_compute_global_forwarding_rule_module>` or :ref `gcp_compute_forwarding_rule <gcp_compute_forwarding_rule_module>` instead.
+* ``gcp_healthcheck`` use :ref `gcp_compute_health_check <gcp_compute_health_check__module>`, :ref `gcp_compute_http_health_check <gcp_compute_http_health_check_module>`, or :ref `gcp_compute_https_health_check <gcp_compute_https_health_check_module>` instead.
+* ``gcp_backend_service`` use :ref `gcp_compute_backend_service <gcp_compute_backend_service_module>` instead.
+* ``gcp_target_proxy`` use :ref `gcp_compute_target_proxy <gcp_compute_target_proxy_module>` instead.
+* ``gcp_url_map`` use :ref `gcp_compute_url_map <gcp_compute_url_map_module>` instead.
* ``panos`` use the `Palo Alto Networks Ansible Galaxy role <https://galaxy.ansible.com/PaloAltoNetworks/paloaltonetworks>`_ instead.
diff --git a/lib/ansible/modules/cloud/google/gcdns_record.py b/lib/ansible/modules/cloud/google/_gcdns_record.py
index d45700dbb1..2856d1e313 100644
--- a/lib/ansible/modules/cloud/google/gcdns_record.py
+++ b/lib/ansible/modules/cloud/google/_gcdns_record.py
@@ -13,7 +13,7 @@ __metaclass__ = type
################################################################################
ANSIBLE_METADATA = {'metadata_version': '1.1',
- 'status': ['preview'],
+ 'status': ['deprecated'],
'supported_by': 'community'}
@@ -28,6 +28,10 @@ author: "William Albert (@walbert947)"
requirements:
- "python >= 2.6"
- "apache-libcloud >= 0.19.0"
+deprecated:
+ removed_in: "2.12"
+ why: Updated modules released with increased functionality
+ alternative: Use M(gcp_dns_resource_record_set) instead.
options:
state:
description:
diff --git a/lib/ansible/modules/cloud/google/gcdns_zone.py b/lib/ansible/modules/cloud/google/_gcdns_zone.py
index 5371e964d5..57eaf944ef 100644
--- a/lib/ansible/modules/cloud/google/gcdns_zone.py
+++ b/lib/ansible/modules/cloud/google/_gcdns_zone.py
@@ -13,7 +13,7 @@ __metaclass__ = type
################################################################################
ANSIBLE_METADATA = {'metadata_version': '1.1',
- 'status': ['preview'],
+ 'status': ['deprecated'],
'supported_by': 'community'}
@@ -27,6 +27,10 @@ version_added: "2.2"
author: "William Albert (@walbert947)"
requirements:
- "apache-libcloud >= 0.19.0"
+deprecated:
+ removed_in: "2.12"
+ why: Updated modules released with increased functionality
+ alternative: Use M(gcp_dns_managed_zone) instead.
options:
state:
description:
diff --git a/lib/ansible/modules/cloud/google/gcp_backend_service.py b/lib/ansible/modules/cloud/google/_gcp_backend_service.py
index d93d16c443..809395a104 100644
--- a/lib/ansible/modules/cloud/google/gcp_backend_service.py
+++ b/lib/ansible/modules/cloud/google/_gcp_backend_service.py
@@ -7,7 +7,7 @@ __metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
- 'status': ['preview'],
+ 'status': ['deprecated'],
'supported_by': 'community'}
DOCUMENTATION = '''
module: gcp_backend_service
@@ -25,6 +25,10 @@ notes:
- Update is not currently supported.
- Only global backend services are currently supported. Regional backends not currently supported.
- Internal load balancing not currently supported.
+deprecated:
+ removed_in: "2.12"
+ why: Updated modules released with increased functionality
+ alternative: Use M(gcp_compute_backend_service) instead.
author:
- "Tom Melendez (@supertom) <tom@supertom.com>"
options:
diff --git a/lib/ansible/modules/cloud/google/gcp_forwarding_rule.py b/lib/ansible/modules/cloud/google/_gcp_forwarding_rule.py
index 63e1472c52..a9c835578a 100644
--- a/lib/ansible/modules/cloud/google/gcp_forwarding_rule.py
+++ b/lib/ansible/modules/cloud/google/_gcp_forwarding_rule.py
@@ -7,7 +7,7 @@ __metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
- 'status': ['preview'],
+ 'status': ['deprecated'],
'supported_by': 'community'}
@@ -28,6 +28,10 @@ requirements:
- "google-api-python-client >= 1.6.2"
- "google-auth >= 0.9.0"
- "google-auth-httplib2 >= 0.0.2"
+deprecated:
+ removed_in: "2.12"
+ why: Updated modules released with increased functionality
+ alternative: Use M(gcp_compute_forwarding_rule) or M(gcp_compute_global_forwarding_rule) instead.
notes:
- Currently only supports global forwarding rules.
As such, Load Balancing Scheme is always EXTERNAL.
diff --git a/lib/ansible/modules/cloud/google/gcp_healthcheck.py b/lib/ansible/modules/cloud/google/_gcp_healthcheck.py
index a572c5e8be..70fa102fe3 100644
--- a/lib/ansible/modules/cloud/google/gcp_healthcheck.py
+++ b/lib/ansible/modules/cloud/google/_gcp_healthcheck.py
@@ -7,7 +7,7 @@ __metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
- 'status': ['preview'],
+ 'status': ['deprecated'],
'supported_by': 'community'}
@@ -37,6 +37,12 @@ requirements:
- "google-auth-httplib2 >= 0.0.2"
notes:
- Only supports HTTP and HTTPS Healthchecks currently.
+deprecated:
+ removed_in: "2.12"
+ why: Updated modules released with increased functionality
+ alternative: >
+ Use M(gcp_compute_healthcheck), M(gcp_compute_http_healthcheck) or
+ M(gcp_compute_https_healthcheck) instead.
author:
- "Tom Melendez (@supertom) <tom@supertom.com>"
options:
diff --git a/lib/ansible/modules/cloud/google/gcp_target_proxy.py b/lib/ansible/modules/cloud/google/_gcp_target_proxy.py
index f8555ecb4b..ecc3f93c27 100644
--- a/lib/ansible/modules/cloud/google/gcp_target_proxy.py
+++ b/lib/ansible/modules/cloud/google/_gcp_target_proxy.py
@@ -7,7 +7,7 @@ __metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
- 'status': ['preview'],
+ 'status': ['deprecated'],
'supported_by': 'community'}
@@ -26,6 +26,10 @@ requirements:
- "google-api-python-client >= 1.6.2"
- "google-auth >= 0.9.0"
- "google-auth-httplib2 >= 0.0.2"
+deprecated:
+ removed_in: "2.12"
+ why: Updated modules released with increased functionality
+ alternative: Use M(gcp_compute_target_proxy) instead.
notes:
- Currently only supports global HTTP proxy.
author:
diff --git a/lib/ansible/modules/cloud/google/gcp_url_map.py b/lib/ansible/modules/cloud/google/_gcp_url_map.py
index 51706ad47b..7e90cae66a 100644
--- a/lib/ansible/modules/cloud/google/gcp_url_map.py
+++ b/lib/ansible/modules/cloud/google/_gcp_url_map.py
@@ -7,7 +7,7 @@ __metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
- 'status': ['preview'],
+ 'status': ['deprecated'],
'supported_by': 'community'}
@@ -31,6 +31,10 @@ notes:
- Url_Map tests are not currently supported.
author:
- "Tom Melendez (@supertom) <tom@supertom.com>"
+deprecated:
+ removed_in: "2.12"
+ why: Updated modules released with increased functionality
+ alternative: Use M(gcp_compute_url_map) instead.
options:
url_map_name:
description:
diff --git a/lib/ansible/modules/cloud/google/gcspanner.py b/lib/ansible/modules/cloud/google/_gcspanner.py
index 763fbc5148..fdf81cafca 100644
--- a/lib/ansible/modules/cloud/google/gcspanner.py
+++ b/lib/ansible/modules/cloud/google/_gcspanner.py
@@ -8,7 +8,7 @@ from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
- 'status': ['preview'],
+ 'status': ['deprecated'],
'supported_by': 'community'}
DOCUMENTATION = '''
@@ -25,6 +25,10 @@ requirements:
- google-cloud-spanner >= 0.23.0
notes:
- Changing the configuration on an existing instance is not supported.
+deprecated:
+ removed_in: "2.12"
+ why: Updated modules released with increased functionality
+ alternative: Use M(gcp_spanner_database) and/or M(gcp_spanner_instance) instead.
author:
- Tom Melendez (@supertom) <tom@supertom.com>
options:
diff --git a/test/sanity/pylint/ignore.txt b/test/sanity/pylint/ignore.txt
index 685a743ad9..1b170cb679 100644
--- a/test/sanity/pylint/ignore.txt
+++ b/test/sanity/pylint/ignore.txt
@@ -23,8 +23,8 @@ lib/ansible/modules/cloud/google/gce_net.py blacklisted-name
lib/ansible/modules/cloud/google/gce_pd.py blacklisted-name
lib/ansible/modules/cloud/google/gce_snapshot.py blacklisted-name
lib/ansible/modules/cloud/google/gce_tag.py blacklisted-name
-lib/ansible/modules/cloud/google/gcp_backend_service.py blacklisted-name
-lib/ansible/modules/cloud/google/gcp_healthcheck.py blacklisted-name
+lib/ansible/modules/cloud/google/_gcp_backend_service.py blacklisted-name
+lib/ansible/modules/cloud/google/_gcp_healthcheck.py blacklisted-name
lib/ansible/modules/cloud/lxc/lxc_container.py blacklisted-name
lib/ansible/modules/files/copy.py blacklisted-name
lib/ansible/modules/files/patch.py blacklisted-name
diff --git a/test/sanity/validate-modules/ignore.txt b/test/sanity/validate-modules/ignore.txt
index f596aab174..66c794a988 100644
--- a/test/sanity/validate-modules/ignore.txt
+++ b/test/sanity/validate-modules/ignore.txt
@@ -120,25 +120,25 @@ lib/ansible/modules/cloud/google/gce_net.py E326
lib/ansible/modules/cloud/google/gce_pd.py E322
lib/ansible/modules/cloud/google/gce_pd.py E326
lib/ansible/modules/cloud/google/gce_snapshot.py E324
-lib/ansible/modules/cloud/google/gcp_backend_service.py E322
-lib/ansible/modules/cloud/google/gcp_backend_service.py E324
-lib/ansible/modules/cloud/google/gcp_backend_service.py E326
-lib/ansible/modules/cloud/google/gcp_forwarding_rule.py E322
-lib/ansible/modules/cloud/google/gcp_forwarding_rule.py E324
-lib/ansible/modules/cloud/google/gcp_forwarding_rule.py E326
-lib/ansible/modules/cloud/google/gcp_healthcheck.py E324
-lib/ansible/modules/cloud/google/gcp_healthcheck.py E326
-lib/ansible/modules/cloud/google/gcp_target_proxy.py E322
-lib/ansible/modules/cloud/google/gcp_target_proxy.py E326
-lib/ansible/modules/cloud/google/gcp_url_map.py E322
-lib/ansible/modules/cloud/google/gcp_url_map.py E324
-lib/ansible/modules/cloud/google/gcp_url_map.py E326
+lib/ansible/modules/cloud/google/_gcp_backend_service.py E322
+lib/ansible/modules/cloud/google/_gcp_backend_service.py E324
+lib/ansible/modules/cloud/google/_gcp_backend_service.py E326
+lib/ansible/modules/cloud/google/_gcp_forwarding_rule.py E322
+lib/ansible/modules/cloud/google/_gcp_forwarding_rule.py E324
+lib/ansible/modules/cloud/google/_gcp_forwarding_rule.py E326
+lib/ansible/modules/cloud/google/_gcp_healthcheck.py E324
+lib/ansible/modules/cloud/google/_gcp_healthcheck.py E326
+lib/ansible/modules/cloud/google/_gcp_target_proxy.py E322
+lib/ansible/modules/cloud/google/_gcp_target_proxy.py E326
+lib/ansible/modules/cloud/google/_gcp_url_map.py E322
+lib/ansible/modules/cloud/google/_gcp_url_map.py E324
+lib/ansible/modules/cloud/google/_gcp_url_map.py E326
lib/ansible/modules/cloud/google/gcpubsub.py E322
lib/ansible/modules/cloud/google/gcpubsub.py E323
lib/ansible/modules/cloud/google/gcpubsub_facts.py E322
lib/ansible/modules/cloud/google/gcpubsub_facts.py E324
lib/ansible/modules/cloud/google/gcpubsub_facts.py E326
-lib/ansible/modules/cloud/google/gcspanner.py E322
+lib/ansible/modules/cloud/google/_gcspanner.py E322
lib/ansible/modules/cloud/linode/linode.py E322
lib/ansible/modules/cloud/linode/linode.py E324
lib/ansible/modules/cloud/lxc/lxc_container.py E210
diff --git a/test/units/modules/cloud/google/test_gcp_forwarding_rule.py b/test/units/modules/cloud/google/test_gcp_forwarding_rule.py
index 6fa906c5fa..9d7408b83d 100644
--- a/test/units/modules/cloud/google/test_gcp_forwarding_rule.py
+++ b/test/units/modules/cloud/google/test_gcp_forwarding_rule.py
@@ -1,6 +1,6 @@
import unittest
-from ansible.modules.cloud.google.gcp_forwarding_rule import _build_global_forwarding_rule_dict
+from ansible.modules.cloud.google._gcp_forwarding_rule import _build_global_forwarding_rule_dict
class TestGCPFowardingRule(unittest.TestCase):
diff --git a/test/units/modules/cloud/google/test_gcp_url_map.py b/test/units/modules/cloud/google/test_gcp_url_map.py
index 6178c4cecb..3d0774e3f6 100644
--- a/test/units/modules/cloud/google/test_gcp_url_map.py
+++ b/test/units/modules/cloud/google/test_gcp_url_map.py
@@ -1,6 +1,6 @@
import unittest
-from ansible.modules.cloud.google.gcp_url_map import _build_path_matchers, _build_url_map_dict
+from ansible.modules.cloud.google._gcp_url_map import _build_path_matchers, _build_url_map_dict
class TestGCPUrlMap(unittest.TestCase):