GCP deprecations (#53355)

* gcdns_record deprecation

* gcdns_zone deprecation

* gcp_forwarding_rule deprecation

* gcp_url_map deprecation

* gcspanner deprecation

* gcp_healthcheck deprecation

* porting guide

* test failures

* forgot to rename

* deprecating

* porting guide changes

* unit test fixes

* changing ignores
pull/55526/head
Alex Stephen 6 years ago committed by John R Barker
parent 316d1db29f
commit e298de0986

@ -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.

@ -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:

@ -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:

@ -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:

@ -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.

@ -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:

@ -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:

@ -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:

@ -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:

@ -24,8 +24,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

@ -118,25 +118,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

@ -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):

@ -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):

Loading…
Cancel
Save