Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Next »

Use the nios_dtc_pool module to create, update, or remove instances of the DTC pool object from a NIOS Grid. A DTC pool is a collection of local DNS resources (virtual servers).

The following table describes the parameters you can define in the nios_dtc_pool module:

Parameter

Required/Optional

Description

nameRequired

Specifies the name of the DTC pool that is displayed.

lb_preferred_methodRequired

Specifies the preferred load balancing method used to select a method type from the pool.
Specify one of the following types of methods

  • ALL_AVAILABLE
  • DYNAMIC_RATIO
  • GLOBAL_AVAILABILITY
  • RATIO
  • ROUND_ROBIN
  • TOPOLOGY
serversOptional

Specifies the DTC servers related to the DTC pool.
It is a dictionary object that contains server details. Define the following subparameters:

  • server (required): Specify the name of the DTC server.
  • ratio: Provide the weight of the server. The default value is 1.
monitorsOptional

Specifies the health monitors related to the DTC pool.
This is a dictionary object that contains the details about health monitoring.

For this option to work, you must set the wapi_version variable in the provider parameter to a value greater than 2.6.

Define the following subparameters:

  • name (required): Specify the name of the health monitor.
  • type (required): Specify the type of the health monitor:
    • http
    • icmp
    • tcp
    • pdp
    • sip
    • snmp
extattrsOptional

Specifies extensible attributes for the DTC pool object.

stateOptional

Specifies the state of the DTC pool instance in NIOS.
Set one of the following values:

  • present (default): Configures the object.
  • absent: Removes the object.
commentOptional

Describes the DTC pool object.

provider

Required

Define the details of the connection:

  • host: The DNS host name or IP address to connect to the remote instance of NIOS.
  • username: The user name to use for authenticating the connection to the remote instance.
  • password: The Password to use for authenticating the connection to the remote instance.

For information on additional fields you can define, see the list of subparameters.

connectionRequiredThe nios_dtc_pool module must be run locally.

Examples

name: Configure a DTC Pool
infoblox.nios_modules.nios_dtc_pool:
  name: web_pool
  lb_preferred_method: ROUND_ROBIN
  servers:
    - server: a.ansible.com
    - server: b.ansible.com

  state: present
  provider:
    host: <nios_hostname_or_hostip>
    username: <nios_username>
    password: <nios_password>

connection: local


name: Add a comment to a DTC Pool
infoblox.nios_modules.nios_dtc_pool:
  name: web.ansibletest.com
  lb_preferred_method: ROUND_ROBIN
  comment: this is a test comment

  state: present
  provider:
    host: host: <nios_hostname_or_hostip>
    username: <nios_username>
    password: <nios_password>

connection: local

  • No labels