192 lines
3.9 KiB
HCL
192 lines
3.9 KiB
HCL
# Global definitions
|
|
variable "main_region" {
|
|
type = string
|
|
default = "isti_area_pi_1"
|
|
}
|
|
|
|
variable "external_network" {
|
|
type = map(string)
|
|
default = {
|
|
name = "external-network"
|
|
id = "1d2ff137-6ff7-4017-be2b-0d6c4af2353b"
|
|
}
|
|
}
|
|
|
|
variable "floating_ip_pools" {
|
|
type = map(string)
|
|
default = {
|
|
main_public_ip_pool = "external-network"
|
|
}
|
|
}
|
|
|
|
variable "resolvers_ip" {
|
|
type = list(string)
|
|
default = ["146.48.29.97", "146.48.29.98", "146.48.29.99"]
|
|
}
|
|
|
|
variable "mtu_size" {
|
|
type = number
|
|
default = 8942
|
|
}
|
|
|
|
variable "availability_zones_names" {
|
|
type = map(string)
|
|
default = {
|
|
availability_zone_no_gpu = "cnr-isti-nova-a"
|
|
availability_zone_with_gpu = "cnr-isti-nova-gpu-a"
|
|
}
|
|
}
|
|
|
|
variable "ssh_sources" {
|
|
type = map(string)
|
|
default = {
|
|
s2i2s_vpn_1_cidr = "146.48.28.10/32"
|
|
s2i2s_vpn_2_cidr = "146.48.28.11/32"
|
|
d4s_vpn_1_cidr = "146.48.122.27/32"
|
|
d4s_vpn_2_cidr = "146.48.122.49/32"
|
|
shell_d4s_cidr = "146.48.122.95/32"
|
|
infrascience_net_cidr = "146.48.122.0/23"
|
|
}
|
|
}
|
|
|
|
variable "networks_with_d4s_services" {
|
|
type = map(string)
|
|
default = {
|
|
"isti_net" = "146.48.80.0/21"
|
|
"s2i2s_net" = "146.48.28.0/22"
|
|
"infrascience_net" = "146.48.122.0/23"
|
|
"garr_ct1_net" = "90.147.166.0/23"
|
|
"garr_pa1_net" = "90.147.188.0/23"
|
|
"garr_na_net" = "90.147.152.0/24"
|
|
}
|
|
}
|
|
|
|
variable "ssh_key_file" {
|
|
type = map(string)
|
|
default = {
|
|
file = "~/.ssh/id_ed25519"
|
|
name = "adellam"
|
|
}
|
|
}
|
|
|
|
variable "ubuntu_1804" {
|
|
type = map(string)
|
|
|
|
default = {
|
|
name = "Ubuntu-Bionic-18.04"
|
|
uuid = "7ed6a2cd-2b07-482e-8ce4-f018dff16c89"
|
|
}
|
|
}
|
|
|
|
variable "ubuntu_2204" {
|
|
type = map(string)
|
|
default = {
|
|
name = "Ubuntu-Jammy-22.04"
|
|
uuid = "54768889-8556-4be4-a2eb-82a4d9b34627"
|
|
}
|
|
}
|
|
|
|
variable "centos_7" {
|
|
type = map(string)
|
|
default = {
|
|
name = "CentOS-7"
|
|
uuid = "f0187a99-64f6-462a-ab5f-ef52fe62f2ca"
|
|
}
|
|
}
|
|
|
|
variable "almalinux_9" {
|
|
type = map(string)
|
|
default = {
|
|
name = "AlmaLinux-9.0-20220718"
|
|
uuid = "541650fc-dd19-4f38-bb1d-7333ed9dd688"
|
|
}
|
|
}
|
|
|
|
variable "ubuntu1804_data_file" {
|
|
default = "../../openstack_vm_data_scripts/ubuntu1804.sh"
|
|
}
|
|
|
|
variable "ubuntu2204_data_file" {
|
|
default = "../../openstack_vm_data_scripts/ubuntu2204.sh"
|
|
}
|
|
|
|
variable "el7_data_file" {
|
|
default = "../../openstack_vm_data_scripts/el7.sh"
|
|
}
|
|
|
|
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.122.132/32"
|
|
}
|
|
}
|
|
|
|
variable "shared_postgresql_server_data" {
|
|
type = map(string)
|
|
default = {
|
|
name ="shared-postgresql-server"
|
|
flavor = "m1.medium"
|
|
vol_data_name = "shared-postgresql-data"
|
|
vol_data_size = "100"
|
|
vol_data_device = "/dev/vdb"
|
|
# vol_backup_name = ""
|
|
# vol_backup_size = ""
|
|
# vol_backup_device = ""
|
|
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"
|
|
}
|
|
}
|
|
|
|
variable "default_security_group_name" {
|
|
default = "default_for_all"
|
|
}
|
|
|
|
variable "resource_registry_addresses" {
|
|
type = map(string)
|
|
default = {
|
|
}
|
|
}
|
|
|
|
variable "smartexecutor_addresses" {
|
|
type = map(string)
|
|
default = {
|
|
}
|
|
}
|