/
infoblox_dtc_lbdn Resource

infoblox_dtc_lbdn Resource

The infoblox_dtc_lbdn resource enables you to perform create, update, and delete operations on a DTC LBDN in a NIOS appliance. The resource represents the ‘dtc:lbdn’ WAPI object in NIOS. For more information related to the DTC LBDN object, see Managing DNS Traffic Control LBDNs in the Infoblox NIOS Documentation.

The following table describes the parameters you can define in the infoblox_dtc_lbdn resource block:

Parameter

Required/Optional

Description

Parameter

Required/Optional

Description

name

Required

Specifies the desired name of the DTC LBDN as shown in the NIOS appliance. The name has the same requirements as the corresponding parameter in WAPI.

auth_zones

Optional

Specifies the list of authoritative zones linked to the DTC LBDN object.
You can define each auth zone with the following sub parameters:

  • fqdn: Specifies the name of the authoritative zone in FQDN format to link the LBDN with.

  • dns_view: Specifies the DNS view in which the auth zone is available.

auto_consolidated_monitors

Optional

Determines whether the automatic management of DTC consolidated monitors is enabled on the the related DTC pool.
The default value is false.

disable

Optional

Determines whether the DTC LBDN object is enabled or disabled.
The default value is false.

lb_method

Required

Specifies the load balancing method that is used to select the pool. You can set it to one of the following methods:

  • GLOBAL_AVAILABILITY

  • RATIO

  • ROUND_ROBIN

  • SOURCE_IP_HASH

  • TOPOLOGY

patterns

Optional

Specifies the LBDN wildcards that can be used for matching the patterns.

persistence

Optional

Specifies the maximum time in seconds, for which the client specific LBDN responses can be cached.
Zero specifies no caching.

pools

Optional

Specifies the list of pools, which are collections of load balanced servers, associated with the DTC LBDN.
To use this parameter, you must configure the following fields:

  • pool: Specifies the name of the pool for the LBDN.

  • ratio: Specifies the weight of the pool.

priority

Optional

Specifies the LBDN-pattern-match priority for “overlapping” DTC LBDN objects. LBDNs are considered “overlapping” if they are simultaneously assigned to a zone and have patterns that can match the same FQDN. The matching LBDN with highest priority (lowest ordinal) will be used.
The valid values are 1, 2, and 3. The default value is 1.

topology

Optional

Specifies the topology rules for the load balancing method TOPOLOGY.

types

Required

Specifies the list of resource record types supported by the LBDN.
A minimum of one of the following types must be specified:

  • A

  • AAAA

  • CNAME

  • NAPTR

  • SRV

ttl

Optional

Specifies the Time to Live value for the LBDN. There is no default value for this parameter.
If a value is not specified, then in NIOS, the TTL value is inherited from the parent object for this resource. A TTL value of 0 (zero) means caching should be disabled for this LBDN.

comment

Optional

Describes the DTC LBDN.

ext_attrs

Optional

Specifies the set of NIOS extensible attributes that will be attached to the DTC LBDN.

Example of DTC LBDN Resource

// creating LBDN record with minimal set of parameters
resource "infoblox_dtc_lbdn" "lbdn_minimal_parameters" {
name = "testLbdn2"
lb_method = "ROUND_ROBIN"
types = ["A", "AAAA"]
})
}

// creating LBDN record with full set of parameters
resource "infoblox_dtc_lbdn" "lbdn_full_set_parameters" {
name = "testLbdn1"
auth_zones {
    fqdn = "info.com"
    dns_view = "default.view2"
  }
  auth_zones {
   fqdn = "test.com"
    dns_view = "default"
  }
  auth_zones {
   fqdn = "test.com"
    dns_view = "default.dnsview1"
  }
comment = "test"
ext_attrs = jsonencode({
"Location" = "65.8665701230204, -37.00791763398113"
})
lb_method = "TOPOLOGY"
patterns = ["info.com", " test.com"]
pools {
pool = "pool2"
ratio = 2
}
pools {
pool = "rrpool"
ratio = 3
}
pools {
pool = "test-pool"
ratio = 6
}
ttl = 120
topology = "test-topo"
disable = true
types = ["A", "AAAA", "CNAME"]
persistence = 60
priority = 1
}