56 lines
1.3 KiB
HCL
56 lines
1.3 KiB
HCL
variable "location" {
|
|
description = <<-EOT
|
|
Location of the infrastructure. Needs to be aligned with network zone.
|
|
For more information visit https://docs.hetzner.com/cloud/general/locations/
|
|
EOT
|
|
type = string
|
|
}
|
|
|
|
variable "lb_type" {
|
|
description = "Type of loadbalancer"
|
|
type = string
|
|
default = "lb11"
|
|
}
|
|
|
|
variable "lb_algorithm" {
|
|
description = "Type of the Load Balancer Algorithm. round_robin or least_connections"
|
|
type = string
|
|
default = "least_connections"
|
|
}
|
|
|
|
variable "domain" {
|
|
description = "Domain name of the load balancer"
|
|
type = string
|
|
default = "wordpress-jr.senecops.com"
|
|
}
|
|
|
|
variable "lb_external_ip" {
|
|
description = "IP address of the loadbalancer"
|
|
type = string
|
|
}
|
|
|
|
variable "lb_internal_ip" {
|
|
description = "Internal IP address of the loadbalancer"
|
|
type = string
|
|
}
|
|
|
|
variable "lb_service_id" {
|
|
description = "ID of the loadbalancer service to attach to"
|
|
type = number
|
|
}
|
|
|
|
variable "subnet_id" {
|
|
description = "ID of the subnetwork to attach the loadbalancer to"
|
|
type = string
|
|
}
|
|
|
|
variable "network_id" {
|
|
description = "ID of the network to attach the loadbalancer to"
|
|
type = string
|
|
}
|
|
|
|
variable "ssh_key_ids" {
|
|
description = "SSH key IDs to add to the loadbalancer server"
|
|
type = list(number)
|
|
}
|