netscaler_servicegroup - Manage service group configuration in Netscaler
New in version 2.4.
Synopsis
- Manage service group configuration in Netscaler.
- This module is intended to run either on the ansible control node or a bastion (jumpserver) with access to the actual netscaler instance.
Requirements (on host that executes module)
- nitro python sdk
Options
parameter | required | default | choices | comments | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
appflowlog | no |
| Enable logging of AppFlow information for the specified service group. | |||||||||||||||||||||||||||||||||||||||||
autoscale | no |
| Auto scale option for a servicegroup. | |||||||||||||||||||||||||||||||||||||||||
cacheable | no |
| Use the transparent cache redirection virtual server to forward the request to the cache server. Note: Do not set this parameter if you set the Cache Type. | |||||||||||||||||||||||||||||||||||||||||
cachetype | no |
| Cache type supported by the cache server. | |||||||||||||||||||||||||||||||||||||||||
cip | no |
| Insert the Client IP header in requests forwarded to the service. | |||||||||||||||||||||||||||||||||||||||||
cipheader | no | Name of the HTTP header whose value must be set to the IP address of the client. Used with the Client IP parameter. If client IP insertion is enabled, and the client IP header is not specified, the value of Client IP Header parameter or the value set by the set ns config command is used as client's IP header name. Minimum length = 1 | ||||||||||||||||||||||||||||||||||||||||||
cka | no |
| Enable client keep-alive for the service group. | |||||||||||||||||||||||||||||||||||||||||
clttimeout | no | Time, in seconds, after which to terminate an idle client connection. Minimum value = 0
Maximum value = 31536000
| ||||||||||||||||||||||||||||||||||||||||||
cmp | no |
| Enable compression for the specified service. | |||||||||||||||||||||||||||||||||||||||||
comment | no | Any information about the service group. | ||||||||||||||||||||||||||||||||||||||||||
disabled | no |
| When set to yes the service group state will be set to DISABLED.When set to no the service group state will be set to ENABLED.Note that due to limitations of the underlying NITRO API a disabled state change alone does not cause the module result to report a changed status. | |||||||||||||||||||||||||||||||||||||||||
downstateflush | no |
| Flush all active transactions associated with all the services in the service group whose state transitions from UP to DOWN. Do not enable this option for applications that must complete their transactions. | |||||||||||||||||||||||||||||||||||||||||
graceful | no |
| Wait for all existing connections to the service to terminate before shutting down the service. | |||||||||||||||||||||||||||||||||||||||||
healthmonitor | no |
| Monitor the health of this service. Available settings function as follows: yes - Send probes to check the health of the service.no - Do not send probes to check the health of the service. With the NO option, the appliance shows the service as UP at all times. | |||||||||||||||||||||||||||||||||||||||||
httpprofilename | no | Name of the HTTP profile that contains HTTP configuration settings for the service group. Minimum length = 1 Maximum length = 127 | ||||||||||||||||||||||||||||||||||||||||||
maxbandwidth | no | Maximum bandwidth, in Kbps, allocated for all the services in the service group. Minimum value = 0
Maximum value = 4294967287
| ||||||||||||||||||||||||||||||||||||||||||
maxclient | no | Maximum number of simultaneous open connections for the service group. Minimum value = 0
Maximum value = 4294967294
| ||||||||||||||||||||||||||||||||||||||||||
maxreq | no | Maximum number of requests that can be sent on a persistent connection to the service group. Note: Connection requests beyond this value are rejected. Minimum value = 0
Maximum value = 65535
| ||||||||||||||||||||||||||||||||||||||||||
memberport | no | member port. | ||||||||||||||||||||||||||||||||||||||||||
monitorbindings | no | A list of monitornames to bind to this service Note that the monitors must have already been setup possibly using the netscaler_lb_monitor module or some other method |
||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||
monthreshold | no | Minimum sum of weights of the monitors that are bound to this service. Used to determine whether to mark a service as UP or DOWN. Minimum value = 0
Maximum value = 65535
| ||||||||||||||||||||||||||||||||||||||||||
netprofile | no | Network profile for the service group. Minimum length = 1 Maximum length = 127 | ||||||||||||||||||||||||||||||||||||||||||
nitro_pass | yes | The password with which to authenticate to the netscaler node. | ||||||||||||||||||||||||||||||||||||||||||
nitro_protocol | no | http |
| Which protocol to use when accessing the nitro API objects. | ||||||||||||||||||||||||||||||||||||||||
nitro_timeout | no | 310 | Time in seconds until a timeout error is thrown when establishing a new session with Netscaler | |||||||||||||||||||||||||||||||||||||||||
nitro_user | yes | The username with which to authenticate to the netscaler node. | ||||||||||||||||||||||||||||||||||||||||||
nsip | yes | The ip address of the netscaler appliance where the nitro API calls will be made. The port can be specified with the colon (:). E.g. 192.168.1.1:555. | ||||||||||||||||||||||||||||||||||||||||||
pathmonitor | no | Path monitoring for clustering. | ||||||||||||||||||||||||||||||||||||||||||
pathmonitorindv | no | Individual Path monitoring decisions. | ||||||||||||||||||||||||||||||||||||||||||
rtspsessionidremap | no |
| Enable RTSP session ID mapping for the service group. | |||||||||||||||||||||||||||||||||||||||||
save_config | no | True |
| If true the module will save the configuration on the netscaler node if it makes any changes. The module will not save the configuration on the netscaler node if it made no changes. | ||||||||||||||||||||||||||||||||||||||||
servicegroupname | no | Name of the service group. Must begin with an ASCII alphabetic or underscore _ character, and must contain only ASCII alphanumeric, underscore _ , hash # , period . , space , colon : , at @ , equals = , and hyphen - characters. Can be changed after the name is created.Minimum length = 1 | ||||||||||||||||||||||||||||||||||||||||||
servicemembers | no | A list of dictionaries describing each service member of the service group. |
||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||
servicetype | no |
| Protocol used to exchange data with the service. | |||||||||||||||||||||||||||||||||||||||||
sp | no |
| Enable surge protection for the service group. | |||||||||||||||||||||||||||||||||||||||||
state | no | present |
| The state of the resource being configured by the module on the netscaler node. When present the resource will be created if needed and configured according to the module's parameters. When absent the resource will be deleted from the netscaler node. | ||||||||||||||||||||||||||||||||||||||||
svrtimeout | no | Time, in seconds, after which to terminate an idle server connection. Minimum value = 0
Maximum value = 31536000
| ||||||||||||||||||||||||||||||||||||||||||
tcpb | no |
| Enable TCP buffering for the service group. | |||||||||||||||||||||||||||||||||||||||||
tcpprofilename | no | Name of the TCP profile that contains TCP configuration settings for the service group. Minimum length = 1 Maximum length = 127 | ||||||||||||||||||||||||||||||||||||||||||
useproxyport | no |
| Use the proxy port as the source port when initiating connections with the server. With the NO setting, the client-side connection port is used as the source port for the server-side connection. Note: This parameter is available only when the Use Source IP usip parameter is set to yes . | |||||||||||||||||||||||||||||||||||||||||
usip | no | Use client's IP address as the source IP address when initiating connection to the server. With the NO setting, which is the default, a mapped IP (MIP) address or subnet IP (SNIP) address is used as the source IP address to initiate server side connections. | ||||||||||||||||||||||||||||||||||||||||||
validate_certs | no | yes | If no , SSL certificates will not be validated. This should only be used on personally controlled sites using self-signed certificates. |
Examples
# The LB Monitors monitor-1 and monitor-2 must already exist # Service members defined by C(ip) must not redefine an existing server's ip address. # Service members defined by C(servername) must already exist. - name: Setup http service with ip members delegate_to: localhost netscaler_servicegroup: nsip: 172.18.0.2 nitro_user: nsroot nitro_pass: nsroot state: present servicegroupname: service-group-1 servicetype: HTTP servicemembers: - ip: 10.78.78.78 port: 80 weight: 50 - ip: 10.79.79.79 port: 80 weight: 40 - servername: server-1 port: 80 weight: 10 monitorbindings: - monitorname: monitor-1 weight: 50 - monitorname: monitor-2 weight: 50
Return Values
Common return values are documented here Return Values, the following are the fields unique to this module:
name | description | returned | type | sample |
---|---|---|---|---|
diff | List of differences between the actual configured object and the configuration specified in the module | failure | dict | {'clttimeout': 'difference. ours: (float) 10.0 other: (float) 20.0'} |
loglines | list of logged messages by the module | always | list | ['message 1', 'message 2'] |
msg | Message detailing the failure reason | failure | str | Action does not exist |
Status
This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Testing Ansible and Developing Modules.
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.4/netscaler_servicegroup_module.html