From 411c7e22b63a867b0eb57cae36c9e3e2ed5ab2c7 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Thu, 26 Feb 2015 21:12:27 -0500 Subject: [PATCH] Add deprecation notices for old OpenStack modules --- lib/ansible/modules/cloud/openstack/_glance_image.py | 1 + lib/ansible/modules/cloud/openstack/_keystone_user.py | 1 + lib/ansible/modules/cloud/openstack/_nova_compute.py | 1 + lib/ansible/modules/cloud/openstack/_nova_keypair.py | 1 + lib/ansible/modules/cloud/openstack/_quantum_floating_ip.py | 1 + .../modules/cloud/openstack/_quantum_floating_ip_associate.py | 1 + lib/ansible/modules/cloud/openstack/_quantum_network.py | 1 + lib/ansible/modules/cloud/openstack/_quantum_router_gateway.py | 1 + lib/ansible/modules/cloud/openstack/_quantum_router_interface.py | 1 + lib/ansible/modules/cloud/openstack/_quantum_subnet.py | 1 + 10 files changed, 10 insertions(+) diff --git a/lib/ansible/modules/cloud/openstack/_glance_image.py b/lib/ansible/modules/cloud/openstack/_glance_image.py index 6425fa2ca5..947b984a76 100644 --- a/lib/ansible/modules/cloud/openstack/_glance_image.py +++ b/lib/ansible/modules/cloud/openstack/_glance_image.py @@ -20,6 +20,7 @@ DOCUMENTATION = ''' --- module: glance_image version_added: "1.2" +deprecated: Deprecated in 1.9. Use os_image instead short_description: Add/Delete images from glance description: - Add or Remove images from the glance repository. diff --git a/lib/ansible/modules/cloud/openstack/_keystone_user.py b/lib/ansible/modules/cloud/openstack/_keystone_user.py index 4af254bfe6..9bc5cc9520 100644 --- a/lib/ansible/modules/cloud/openstack/_keystone_user.py +++ b/lib/ansible/modules/cloud/openstack/_keystone_user.py @@ -7,6 +7,7 @@ DOCUMENTATION = ''' --- module: keystone_user version_added: "1.2" +deprecated: Deprecated in 1.9. Use os_keystone_user instead short_description: Manage OpenStack Identity (keystone) users, tenants and roles description: - Manage users,tenants, roles from OpenStack. diff --git a/lib/ansible/modules/cloud/openstack/_nova_compute.py b/lib/ansible/modules/cloud/openstack/_nova_compute.py index e4e1cae6c8..0b911e7659 100644 --- a/lib/ansible/modules/cloud/openstack/_nova_compute.py +++ b/lib/ansible/modules/cloud/openstack/_nova_compute.py @@ -33,6 +33,7 @@ DOCUMENTATION = ''' --- module: nova_compute version_added: "1.2" +deprecated: Deprecated in 1.9. Use os_server instead short_description: Create/Delete VMs from OpenStack description: - Create or Remove virtual machines from Openstack. diff --git a/lib/ansible/modules/cloud/openstack/_nova_keypair.py b/lib/ansible/modules/cloud/openstack/_nova_keypair.py index c7c9affb3e..14d3f24259 100644 --- a/lib/ansible/modules/cloud/openstack/_nova_keypair.py +++ b/lib/ansible/modules/cloud/openstack/_nova_keypair.py @@ -28,6 +28,7 @@ DOCUMENTATION = ''' --- module: nova_keypair version_added: "1.2" +deprecated: Deprecated in 1.9. Use os_keypair instead short_description: Add/Delete key pair from nova description: - Add or Remove key pair from nova . diff --git a/lib/ansible/modules/cloud/openstack/_quantum_floating_ip.py b/lib/ansible/modules/cloud/openstack/_quantum_floating_ip.py index 17f78effff..821e8b608b 100644 --- a/lib/ansible/modules/cloud/openstack/_quantum_floating_ip.py +++ b/lib/ansible/modules/cloud/openstack/_quantum_floating_ip.py @@ -31,6 +31,7 @@ DOCUMENTATION = ''' --- module: quantum_floating_ip version_added: "1.2" +deprecated: Deprecated in 1.9. Use os_floating_ip instead short_description: Add/Remove floating IP from an instance description: - Add or Remove a floating IP to an instance diff --git a/lib/ansible/modules/cloud/openstack/_quantum_floating_ip_associate.py b/lib/ansible/modules/cloud/openstack/_quantum_floating_ip_associate.py index 91df2690b6..88720529d6 100644 --- a/lib/ansible/modules/cloud/openstack/_quantum_floating_ip_associate.py +++ b/lib/ansible/modules/cloud/openstack/_quantum_floating_ip_associate.py @@ -31,6 +31,7 @@ DOCUMENTATION = ''' --- module: quantum_floating_ip_associate version_added: "1.2" +deprecated: Deprecated in 1.9. Use os_floating_ip instead short_description: Associate or disassociate a particular floating IP with an instance description: - Associates or disassociates a specific floating IP with a particular instance diff --git a/lib/ansible/modules/cloud/openstack/_quantum_network.py b/lib/ansible/modules/cloud/openstack/_quantum_network.py index 6b0c66e7a1..7c66af0729 100644 --- a/lib/ansible/modules/cloud/openstack/_quantum_network.py +++ b/lib/ansible/modules/cloud/openstack/_quantum_network.py @@ -29,6 +29,7 @@ DOCUMENTATION = ''' --- module: quantum_network version_added: "1.4" +deprecated: Deprecated in 1.9. Use os_network instead short_description: Creates/Removes networks from OpenStack description: - Add or Remove network from OpenStack. diff --git a/lib/ansible/modules/cloud/openstack/_quantum_router_gateway.py b/lib/ansible/modules/cloud/openstack/_quantum_router_gateway.py index 5de19fd478..cbf6a841c5 100644 --- a/lib/ansible/modules/cloud/openstack/_quantum_router_gateway.py +++ b/lib/ansible/modules/cloud/openstack/_quantum_router_gateway.py @@ -28,6 +28,7 @@ DOCUMENTATION = ''' --- module: quantum_router_gateway version_added: "1.2" +deprecated: Deprecated in 1.9. Use os_router_gateway instead short_description: set/unset a gateway interface for the router with the specified external network description: - Creates/Removes a gateway interface from the router, used to associate a external network with a router to route external traffic. diff --git a/lib/ansible/modules/cloud/openstack/_quantum_router_interface.py b/lib/ansible/modules/cloud/openstack/_quantum_router_interface.py index c5828ad410..3e758d7d92 100644 --- a/lib/ansible/modules/cloud/openstack/_quantum_router_interface.py +++ b/lib/ansible/modules/cloud/openstack/_quantum_router_interface.py @@ -27,6 +27,7 @@ except ImportError: DOCUMENTATION = ''' --- module: quantum_router_interface +deprecated: Deprecated in 1.9. Use os_router_interface instead version_added: "1.2" short_description: Attach/Dettach a subnet's interface to a router description: diff --git a/lib/ansible/modules/cloud/openstack/_quantum_subnet.py b/lib/ansible/modules/cloud/openstack/_quantum_subnet.py index e38b2c94aa..2d485c1596 100644 --- a/lib/ansible/modules/cloud/openstack/_quantum_subnet.py +++ b/lib/ansible/modules/cloud/openstack/_quantum_subnet.py @@ -29,6 +29,7 @@ DOCUMENTATION = ''' --- module: quantum_subnet version_added: "1.2" +deprecated: Deprecated in 1.9. Use os_subnet instead short_description: Add/remove subnet from a network description: - Add/remove subnet from a network