netscaler.adc.servicegroup module – Configuration for service group resource.
Note
This module is part of the netscaler.adc collection (version 2.6.0).
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install netscaler.adc
.
To use it in a playbook, specify: netscaler.adc.servicegroup
.
New in netscaler.adc 2.0.0
Synopsis
Configuration for service group resource.
Parameters
Parameter |
Comments |
---|---|
Base NITRO API path. Define only in case of an ADM service proxy call Default: |
|
Enable logging of AppFlow information for the specified service group. Choices:
|
|
Indicates graceful movement of IP-Port binding/s to TROFS when IP addresses are removed from DNS response. System will wait for monitor response timeout period before moving to TROFS . Choices:
|
|
The time allowed (in seconds) for a graceful shutdown. During this period, new connections or requests will continue to be sent to this service for clients who already have a persistent session on the system. Connections or requests from fresh or new clients who do not yet have a persistence sessions on the system will not be sent to the service. Instead, they will be load balanced among other available services. After the delay time expires, no new requests or connections will be sent to the service. |
|
Indicates graceful shutdown of the service. System will wait for all outstanding connections to this service to be closed before disabling the service. Choices:
|
|
Auto scale option for a servicegroup Choices:
|
|
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. Choices:
|
|
Cache type supported by the cache server. Choices:
|
|
Insert the Client IP header in requests forwarded to the service. Choices:
|
|
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. |
|
Enable client keep-alive for the service group. Choices:
|
|
Time, in seconds, after which to terminate an idle client connection. |
|
Enable compression for the specified service. Choices:
|
|
Any information about the service group. |
|
The identifier for this IP:Port pair. Used when the persistency type is set to Custom Server ID. |
|
Specify the TTL for DNS record for domain based service.The default value of ttl is 0 which indicates to use the TTL received in DNS response for monitors |
|
Time, in seconds, allocated for a shutdown of the services in the service group. During this period, new requests are sent to the service only for clients who already have persistent sessions on the appliance. Requests from new clients are load balanced among other available services. After the delay time expires, no requests are sent to the service, and the service is marked as unavailable (OUT OF SERVICE). |
|
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. Choices:
|
|
weight of the monitor that is bound to servicegroup. |
|
Wait for all existing connections to the service to terminate before shutting down the service. Choices:
|
|
The hash identifier for the service. This must be unique for each service. This parameter is used by hash based load balancing methods. |
|
Monitor the health of this service. Available settings function as follows:
Choices:
|
|
Name of the HTTP profile that contains HTTP configuration settings for the service group. |
|
Display the members of the listed service groups in addition to their settings. Can be specified when no service group name is provided in the command. In that case, the details displayed for each service group are identical to the details displayed when a service group name is provided, except that bound monitors are not displayed. Choices:
|
|
The ID of the managed NetScaler instance to which NetScaler Console has to configure as a proxy server. Define only in case of an ADM service proxy call |
|
The IP of the managed NetScaler instance to which NetScaler Console has to configure as a proxy server. Define only in case of an ADM service proxy call |
|
The name of the managed NetScaler instance to which NetScaler Console has to configure as a proxy server. Define only in case of an ADM service proxy call |
|
The password of the managed NetScaler instance. Define only in case of an ADM service proxy call In Settings > Administration > System Configurations > Basic Settings, if you select Prompt Credentials for Instance Login, ensure to configure username and password of a managed instance. |
|
The username of the managed NetScaler instance. Define only in case of an ADM service proxy call In Settings > Administration > System Configurations > Basic Settings, if you select Prompt Credentials for Instance Login, ensure to configure username and password of a managed instance. |
|
Maximum bandwidth, in Kbps, allocated for all the services in the service group. |
|
Maximum number of simultaneous open connections for the service group. |
|
Maximum number of requests that can be sent on a persistent connection to the service group. Note: Connection requests beyond this value are rejected. |
|
member port |
|
Close monitoring connections by sending the service a connection termination message with the specified bit set. Choices:
|
|
Name of the monitor bound to the service group. Used to assign a weight to the monitor. |
|
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. |
|
Specify the nameserver to which the query for bound domain needs to be sent. If not specified, use the global nameserver |
|
Network profile for the service group. |
|
The IP address of the NetScaler ADC appliance acting as a proxy server. Define only in case of an ADM service proxy call Choices:
|
|
New name for the service group. |
|
The authentication token provided by a login operation. |
|
The password with which to authenticate to the NetScaler ADC node. |
|
Which protocol to use when accessing the nitro API objects. Choices:
|
|
The username with which to authenticate to the NetScaler ADC node. |
|
The ip address of the NetScaler ADC appliance where the nitro API calls will be made. The port can be specified with the colon (:). E.g. 192.168.1.1:555. |
|
Order number to be assigned to the servicegroup member |
|
Path monitoring for clustering Choices:
|
|
Individual Path monitoring decisions. Choices:
|
|
Server port number. |
|
Enable RTSP session ID mapping for the service group. Choices:
|
|
If The module will not save the configuration on the NetScaler ADC node if it made no changes. Choices:
|
|
The identifier for the service. This is used when the persistency type is set to Custom Server ID. |
|
Name of the server to which to bind the service group. |
|
Bindings for servicegroup_lbmonitor_binding resource |
|
List of binding members Default: |
|
The mode in which to configure the bindings. If mode is set to If mode is set to If mode is set to Choices:
|
|
Bindings for servicegroup_servicegroupmember_binding resource |
|
List of binding members Default: |
|
The mode in which to configure the bindings. If mode is set to If mode is set to If mode is set to Choices:
|
|
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. |
|
Protocol used to exchange data with the service. Choices:
|
|
Enable surge protection for the service group. Choices:
|
|
The state of the resource being configured by the module on the NetScaler ADC node. When When When When When Choices:
|
|
Time, in seconds, after which to terminate an idle server connection. |
|
Enable TCP buffering for the service group. Choices:
|
|
Name of the TCP profile that contains TCP configuration settings for the service group. |
|
Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. |
|
Use the proxy port as the source port when initiating connections with the server. With the Note: This parameter is available only when the Use Source IP (USIP) parameter is set to Choices:
|
|
Use client’s IP address as the source IP address when initiating connection to the server. With the Choices:
|
|
If Choices:
|
|
Weight to assign to the servers in the service group. Specifies the capacity of the servers relative to the other servers in the load balancing configuration. The higher the weight, the higher the percentage of requests sent to the service. |
Notes
Note
For more information on using Ansible to manage NetScaler ADC Network devices see https://www.ansible.com/integrations/networks/citrixadc.
Examples
---
- name: Sample Playbook
hosts: localhost
gather_facts: false
tasks:
- name: Setup servers
delegate_to: localhost
netscaler.adc.server:
state: present
name: foo.example.com
domain: foo.example.com
- name: Setup servicegroups
delegate_to: localhost
tags: test
netscaler.adc.servicegroup:
state: absent
servicegroupname: test1-1
servicetype: TCP
autoscale: DNS
healthmonitor: "YES"
servicegroup_servicegroupmember_binding:
binding_members:
- servername: foo.example.com
port: 443
servicegroupname: test1-1
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Indicates if any change is made by the module Returned: always Sample: |
|
Dictionary of before and after changes Returned: always Sample: |
|
List of differences between the actual configured object and the configuration specified in the module Returned: when changed Sample: |
|
Indicates if the module failed or not Returned: always Sample: |
|
list of logged messages by the module Returned: always Sample: |