Removes gtm wide ip from skip file (#32422)

pull/32424/head
Tim Rupp 7 years ago committed by GitHub
parent 8868b5fa85
commit 6193d5bc65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4,14 +4,18 @@
# Copyright (c) 2017 F5 Networks Inc. # Copyright (c) 2017 F5 Networks Inc.
# GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1', ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'], 'status': ['preview'],
'supported_by': 'community'} 'supported_by': 'community'}
DOCUMENTATION = ''' DOCUMENTATION = r'''
--- ---
module: bigip_gtm_wide_ip module: bigip_gtm_wide_ip
short_description: Manages F5 BIG-IP GTM wide ip. short_description: Manages F5 BIG-IP GTM wide ip
description: description:
- Manages F5 BIG-IP GTM wide ip. - Manages F5 BIG-IP GTM wide ip.
version_added: "2.0" version_added: "2.0"
@ -62,6 +66,11 @@ options:
- disabled - disabled
- enabled - enabled
version_added: 2.4 version_added: 2.4
partition:
description:
- Device partition to manage resources on.
default: Common
version_added: 2.5
notes: notes:
- Requires the f5-sdk Python package on the host. This is as easy as pip - Requires the f5-sdk Python package on the host. This is as easy as pip
install f5-sdk. install f5-sdk.
@ -72,41 +81,43 @@ author:
- Tim Rupp (@caphrim007) - Tim Rupp (@caphrim007)
''' '''
EXAMPLES = ''' EXAMPLES = r'''
- name: Set lb method - name: Set lb method
bigip_gtm_wide_ip: bigip_gtm_wide_ip:
server: "lb.mydomain.com" server: lb.mydomain.com
user: "admin" user: admin
password: "secret" password: secret
lb_method: "round-robin" lb_method: round-robin
name: "my-wide-ip.example.com" name: my-wide-ip.example.com
delegate_to: localhost delegate_to: localhost
''' '''
RETURN = ''' RETURN = r'''
lb_method: lb_method:
description: The new load balancing method used by the wide IP. description: The new load balancing method used by the wide IP.
returned: changed returned: changed
type: string type: string
sample: "topology" sample: topology
state: state:
description: The new state of the wide IP. description: The new state of the wide IP.
returned: changed returned: changed
type: string type: string
sample: "disabled" sample: disabled
''' '''
import re import re
from ansible.module_utils.f5_utils import ( from ansible.module_utils.f5_utils import AnsibleF5Client
AnsibleF5Client, from ansible.module_utils.f5_utils import AnsibleF5Parameters
AnsibleF5Parameters, from ansible.module_utils.f5_utils import HAS_F5SDK
HAS_F5SDK, from ansible.module_utils.f5_utils import F5ModuleError
F5ModuleError,
iControlUnexpectedHTTPError
)
from distutils.version import LooseVersion from distutils.version import LooseVersion
try:
from ansible.module_utils.f5_utils import iControlUnexpectedHTTPError
except ImportError:
HAS_F5SDK = False
class Parameters(AnsibleF5Parameters): class Parameters(AnsibleF5Parameters):
updatables = ['lb_method'] updatables = ['lb_method']
@ -494,23 +505,18 @@ class ArgumentSpec(object):
self.supports_check_mode = True self.supports_check_mode = True
self.argument_spec = dict( self.argument_spec = dict(
lb_method=dict( lb_method=dict(
required=False, choices=lb_method_choices
choices=lb_method_choices,
default=None
), ),
name=dict( name=dict(
required=True, required=True,
aliases=['wide_ip'] aliases=['wide_ip']
), ),
type=dict( type=dict(
required=False,
default=None,
choices=[ choices=[
'a', 'aaaa', 'cname', 'mx', 'naptr', 'srv' 'a', 'aaaa', 'cname', 'mx', 'naptr', 'srv'
] ]
), ),
state=dict( state=dict(
required=False,
default='present', default='present',
choices=['absent', 'present', 'enabled', 'disabled'] choices=['absent', 'present', 'enabled', 'disabled']
) )

@ -14,7 +14,6 @@ lib/ansible/modules/cloud/webfaction/webfaction_mailbox.py
lib/ansible/modules/cloud/webfaction/webfaction_site.py lib/ansible/modules/cloud/webfaction/webfaction_site.py
lib/ansible/modules/clustering/consul_acl.py lib/ansible/modules/clustering/consul_acl.py
lib/ansible/modules/network/cloudengine/ce_file_copy.py lib/ansible/modules/network/cloudengine/ce_file_copy.py
lib/ansible/modules/network/f5/bigip_gtm_wide_ip.py
lib/ansible/modules/network/f5/bigip_hostname.py lib/ansible/modules/network/f5/bigip_hostname.py
lib/ansible/modules/network/f5/bigip_iapp_service.py lib/ansible/modules/network/f5/bigip_iapp_service.py
lib/ansible/modules/network/f5/bigip_iapp_template.py lib/ansible/modules/network/f5/bigip_iapp_template.py

@ -1,21 +1,7 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# #
# Copyright 2017 F5 Networks Inc. # Copyright (c) 2017 F5 Networks Inc.
# # GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
from __future__ import (absolute_import, division, print_function) from __future__ import (absolute_import, division, print_function)
__metaclass__ = type __metaclass__ = type
@ -42,6 +28,7 @@ try:
from library.bigip_gtm_wide_ip import ArgumentSpec from library.bigip_gtm_wide_ip import ArgumentSpec
from library.bigip_gtm_wide_ip import UntypedManager from library.bigip_gtm_wide_ip import UntypedManager
from library.bigip_gtm_wide_ip import TypedManager from library.bigip_gtm_wide_ip import TypedManager
from ansible.module_utils.f5_utils import iControlUnexpectedHTTPError
except ImportError: except ImportError:
try: try:
from ansible.modules.network.f5.bigip_gtm_wide_ip import Parameters from ansible.modules.network.f5.bigip_gtm_wide_ip import Parameters
@ -49,6 +36,7 @@ except ImportError:
from ansible.modules.network.f5.bigip_gtm_wide_ip import ArgumentSpec from ansible.modules.network.f5.bigip_gtm_wide_ip import ArgumentSpec
from ansible.modules.network.f5.bigip_gtm_wide_ip import UntypedManager from ansible.modules.network.f5.bigip_gtm_wide_ip import UntypedManager
from ansible.modules.network.f5.bigip_gtm_wide_ip import TypedManager from ansible.modules.network.f5.bigip_gtm_wide_ip import TypedManager
from ansible.module_utils.f5_utils import iControlUnexpectedHTTPError
except ImportError: except ImportError:
raise SkipTest("F5 Ansible modules require the f5-sdk Python library") raise SkipTest("F5 Ansible modules require the f5-sdk Python library")

Loading…
Cancel
Save