Fixes skip imports for bigip_configsync_action module (#32413)
This commit is contained in:
parent
25bfea836d
commit
daaf8ca86c
3 changed files with 34 additions and 41 deletions
|
@ -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_configsync_action
|
module: bigip_configsync_action
|
||||||
short_description: Perform different actions related to config-sync.
|
short_description: Perform different actions related to config-sync
|
||||||
description:
|
description:
|
||||||
- Allows one to run different config-sync actions. These actions allow
|
- Allows one to run different config-sync actions. These actions allow
|
||||||
you to manually sync your configuration across multiple BIG-IPs when
|
you to manually sync your configuration across multiple BIG-IPs when
|
||||||
|
@ -60,39 +64,39 @@ author:
|
||||||
- Tim Rupp (@caphrim007)
|
- Tim Rupp (@caphrim007)
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = r'''
|
||||||
- name: Sync configuration from device to group
|
- name: Sync configuration from device to group
|
||||||
bigip_configsync_actions:
|
bigip_configsync_actions:
|
||||||
device_group: "foo-group"
|
device_group: foo-group
|
||||||
sync_device_to_group: yes
|
sync_device_to_group: yes
|
||||||
server: "lb01.mydomain.com"
|
server: lb.mydomain.com
|
||||||
user: "admin"
|
user: admin
|
||||||
password: "secret"
|
password: secret
|
||||||
validate_certs: no
|
validate_certs: no
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
|
||||||
- name: Sync configuration from most recent device to the current host
|
- name: Sync configuration from most recent device to the current host
|
||||||
bigip_configsync_actions:
|
bigip_configsync_actions:
|
||||||
device_group: "foo-group"
|
device_group: foo-group
|
||||||
sync_most_recent_to_device: yes
|
sync_most_recent_to_device: yes
|
||||||
server: "lb01.mydomain.com"
|
server: lb.mydomain.com
|
||||||
user: "admin"
|
user: admin
|
||||||
password: "secret"
|
password: secret
|
||||||
validate_certs: no
|
validate_certs: no
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
|
||||||
- name: Perform an initial sync of a device to a new device group
|
- name: Perform an initial sync of a device to a new device group
|
||||||
bigip_configsync_actions:
|
bigip_configsync_actions:
|
||||||
device_group: "new-device-group"
|
device_group: new-device-group
|
||||||
sync_device_to_group: yes
|
sync_device_to_group: yes
|
||||||
server: "lb01.mydomain.com"
|
server: lb.mydomain.com
|
||||||
user: "admin"
|
user: admin
|
||||||
password: "secret"
|
password: secret
|
||||||
validate_certs: no
|
validate_certs: no
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = r'''
|
||||||
# only common fields returned
|
# only common fields returned
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
@ -345,10 +349,14 @@ class ArgumentSpec(object):
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
if not HAS_F5SDK:
|
if not HAS_F5SDK:
|
||||||
raise F5ModuleError("The python f5-sdk module is required")
|
raise F5ModuleError(
|
||||||
|
"The python 'f5-sdk' module is required. This can be done with 'pip install f5-sdk'"
|
||||||
|
)
|
||||||
|
|
||||||
if not HAS_OBJPATH:
|
if not HAS_OBJPATH:
|
||||||
raise F5ModuleError("The python objectpath module is required")
|
raise F5ModuleError(
|
||||||
|
"The python 'objectpath' module is required. This can be done with 'pip install objectpath'"
|
||||||
|
)
|
||||||
|
|
||||||
spec = ArgumentSpec()
|
spec = ArgumentSpec()
|
||||||
|
|
||||||
|
|
|
@ -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_configsync_actions.py
|
|
||||||
lib/ansible/modules/network/f5/bigip_gtm_pool.py
|
lib/ansible/modules/network/f5/bigip_gtm_pool.py
|
||||||
lib/ansible/modules/network/f5/bigip_gtm_wide_ip.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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue