99 lines
2.8 KiB
HCL
99 lines
2.8 KiB
HCL
|
|
variable "ssh_jump_proxy" {
|
|
type = map(string)
|
|
default = {
|
|
name = "ssh-jump-proxy"
|
|
flavor = "m2.small"
|
|
}
|
|
}
|
|
|
|
variable "internal_ca_data" {
|
|
type = map(string)
|
|
default = {
|
|
name = "ca"
|
|
flavor = "m1.small"
|
|
}
|
|
}
|
|
|
|
variable "prometheus_server_data" {
|
|
type = map(string)
|
|
default = {
|
|
name = "prometheus"
|
|
flavor = "m1.medium"
|
|
vol_data_name = "prometheus-data"
|
|
vol_data_size = "100"
|
|
vol_data_device = "/dev/vdb"
|
|
public_grafana_server_cidr = "146.48.28.103/32"
|
|
}
|
|
}
|
|
|
|
variable "shared_postgresql_server_data" {
|
|
type = map(string)
|
|
default = {
|
|
name = "shared-postgresql-server"
|
|
flavor = "m1.large"
|
|
vol_data_name = "shared-postgresql-data"
|
|
vol_data_size = "100"
|
|
vol_data_device = "/dev/vdb"
|
|
network_name = "postgresql-srv-net"
|
|
network_description = "Network used to communicate with the shared postgresql service"
|
|
network_cidr = "192.168.0.0/22"
|
|
allocation_pool_start = "192.168.0.100"
|
|
allocation_pool_end = "192.168.3.254"
|
|
server_ip = "192.168.0.5"
|
|
server_cidr = "192.168.0.5/22"
|
|
}
|
|
}
|
|
|
|
variable "haproxy_l7_data" {
|
|
type = map(string)
|
|
default = {
|
|
name = "main-haproxy-l7"
|
|
haproxy_1 = "haproxy-l7-1"
|
|
haproxy_2 = "haproxy-l7-2"
|
|
flavor = "m1.medium"
|
|
vm_count = "2"
|
|
haproxy1_server_ip = "192.168.253.5"
|
|
haproxy2_server_ip = "192.168.253.6"
|
|
haproxy1_cidr = "192.168.253.5/24"
|
|
haproxy2_cidr = "192.168.253.6/24"
|
|
}
|
|
}
|
|
|
|
variable "main_octavia_lb_name" {
|
|
default = ""
|
|
}
|
|
|
|
variable "main_octavia_lb_description" {
|
|
default = ""
|
|
}
|
|
|
|
variable "main_octavia_lb_hostname" {
|
|
default = "octavia-main-lb"
|
|
}
|
|
|
|
variable "main_octavia_lb_flavor" {
|
|
default = "octavia_amphora-mvcpu-ha"
|
|
}
|
|
|
|
variable "octavia_information" {
|
|
type = map(string)
|
|
default = {
|
|
main_lb_name = var.main_octavia_lb_name
|
|
main_lb_description = var.main_octavia_lb_description
|
|
octavia_flavor = var.main_octavia_lb_flavor
|
|
octavia_flavor_id = "394988b5-6603-4a1e-a939-8e177c6681c7"
|
|
main_lb_hostname = var.main_octavia_lb_hostname
|
|
network_name = "octavia-main-haproxy-net"
|
|
network_description = "Network that veicolates the traffic from Octavia and the main load balancer"
|
|
subnet_name = "octavia-main-haproxy-net"
|
|
subnet_description = "Network that veicolates the traffic from Octavia and the main load balancer"
|
|
subnet_cidr = "192.168.253.0/24"
|
|
gateway_ip = "192.168.253.1"
|
|
allocation_pool_start = "192.168.253.100"
|
|
allocation_pool_end = "192.168.253.254"
|
|
external_router_name = "octavia_main_lb_router"
|
|
external_router_description = "Octavia Main LB router"
|
|
}
|
|
}
|