# 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/>.
DOCUMENTATION='''
---
module: bigip_pool_member
short_description: "Manages F5 BIG-IP LTM pool members"
description:
- "Manages F5 BIG-IP LTM pool members via iControl SOAP API"
version_added: "TBD"
author: Matt Hite
notes:
- "Requires BIG-IP software version >= 11"
- "F5 developed module 'bigsuds' required (see http://devcentral.f5.com)"
- "Best run as a local_action in your playbook"
requirements:
- bigsuds
options:
server:
description:
- BIG-IP host
required: true
default: null
choices: []
aliases: []
user:
description:
- BIG-IP username
required: true
default: null
choices: []
aliases: []
password:
description:
- BIG-IP password
required: true
default: null
choices: []
aliases: []
state:
description:
- Pool member state
required: true
default: present
choices: ['present', 'absent']
aliases: []
name:
description:
- Pool name. This pool must exist.
required: true
default: null
choices: []
aliases: ['pool']
partition:
description:
- Partition
required: false
default: 'Common'
choices: []
aliases: []
host:
description:
- "Pool member IP"
required: true
default: null
choices: []
aliases: ['address']
port:
description:
- "Pool member port"
required: true
default: null
choices: []
aliases: []
connection_limit:
description:
- Sets the connection limit for a set of pool member. Setting this to 0 disables the limit.
required: false
default: null
choices: []
aliases: []
description:
description:
- Sets the description for a pool member. This is an arbitrary field which can be used for any purpose.
required: false
default: null
choices: []
aliases: []
rate_limit:
description:
- Sets the rate limit for a pool member. This value should be a positive integer representing connections-per-second. Setting this to 0 disables the limit.
required: false
default: null
choices: []
aliases: []
ratio:
description:
- Sets the ratio weight for a pool member. Valid values range from 1 through 100. New pool members -- unless overriden with this value -- default to 1.
required: false
default: null
choices: []
aliases: []
'''
EXAMPLES='''
TBD
TBD
TBD
TBD
'''
try:
importbigsuds
exceptImportError:
bigsuds_found=False
else:
bigsuds_found=True
# ===========================================
# bigip_pool_member module specific support methods.