Skip to content

Terraform module which manages NSX-T ALB pool ressources for consumption by NSX-T ALB loadbalancers on VMWare Cloud Director.

Notifications You must be signed in to change notification settings

noris-network/terraform-vcd-nsxt-alb-pool

Repository files navigation

terraform-vcd-nsxt-alb-pool

Terraform module which manages NSX-T ALB pool ressources for consumption by NSX-T ALB loadbalancers on VMWare Cloud Director.

Requirements

Name Version
terraform >= 1.1.9
vcd >= 3.11.0

Providers

Name Version
vcd 3.11.0

Modules

No modules.

Resources

Name Type
vcd_nsxt_alb_pool.nsxt_alb_pool resource
vcd_library_certificate.library_certificate data source
vcd_nsxt_edgegateway.nsxt_edgegateway data source
vcd_nsxt_ip_set.nsxt_ip_set data source
vcd_vdc_group.vdc_group data source

Inputs

Name Description Type Default Required
vdc_edgegateway_name Edge Gateway of Customer. string n/a yes
vdc_group_name Default Virtual Data Center Group of Customer. string n/a yes
vdc_org_name The name of the organization to use. string n/a yes
algorithm Optional algorithm for choosing pool members. string "LEAST_CONNECTIONS" no
ca_certificate_name The alias of the certificate from the VCD library. string "" no
cn_check_enabled Specifies whether to check the common name of the certificate presented by the pool member bool false no
default_port Default Port defines destination server port used by the traffic sent to the member. number 80 no
description An optional description NSX-T ALB Pool. string null no
domain_names A set of domain names which will be used to verify the common names or subject alternative names presented by the pool member certificates list(string) [] no
enabled Boolean value if NSX-T ALB Pool should be enabled. bool true no
graceful_timeout_period Maximum time in minutes to gracefully disable pool member. string "1" no
health_monitor A block to define health monitor
list(object({
type = string
}))
[] no
member_group_ip_set_name The name of the Member Group IP Set. string null no
members List of pool members.
list(object({
enabled = bool
ip_address = string
port = number
ratio = number
}))
[] no
passive_monitoring_enabled defines if client traffic should be used to check if pool member is up or down. bool true no
persistence_profile Persistence profile to ensure that the same user sticks to the same server for a desired duration of time
list(object({
type = string
value = string
}))
[] no
pool_name A name for NSX-T ALB Pool. string null no
ssl_enabled Enables SSL - Necessary when CA certificates are used. bool false no
use_member_group Whether to use an IP set as pool members. bool false no

Outputs

Name Description
associated_virtual_service_ids Virtual services IDs for this pool.
associated_virtual_services Virtual services for this pool.
health_message Current health status.
lb_algorithm Distribution algorithm.
lb_default_server_port Default server port.
lb_enabled_member_count Enabled pool member count.
lb_health_monitor_name System generated name of Health monitor.
lb_health_monitor_system_defined A boolean flag if the Health monitor is system defined.
lb_health_monitor_type Type of health monitor. One of HTTP, HTTPS, TCP, UDP, PING.
lb_member_count Pool member count.
lb_member_group_ipset_name This pools used ip_set name.
lb_persistence_profile_name System generated name of Persistence Profile.
lb_pool_members List of all members with their details.
lb_up_member_count Pool member up count.

Examples

module "webserver_lb_pool" {
  source                   = "git::https://github.com/noris-network/terraform-vcd-nsxt-alb-pool?ref=1.0.1"
  vdc_group_name           = "myDCGroup"
  vdc_org_name             = "myORG"
  vdc_edgegateway_name     = "T1-myORG"
  pool_name                = "webserver_alb_pool"
  default_port             = 443
  use_member_group         = true
  ssl_enabled              = true
  ca_certificate_name      = "www.example.net"
  member_group_ip_set_name = "webserver_ip_set"
  health_monitor           = ["HTTP"]
}

About

Terraform module which manages NSX-T ALB pool ressources for consumption by NSX-T ALB loadbalancers on VMWare Cloud Director.

Topics

Resources

Stars

Watchers

Forks

Languages