158 lines
3.6 KiB
HCL
158 lines
3.6 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 "ubuntu_2204" {
|
|
type = map(string)
|
|
default = {
|
|
name = "Ubuntu-Jammy-22.04"
|
|
uuid = "54768889-8556-4be4-a2eb-82a4d9b34627"
|
|
user_data_file = "../../s2i2s_openstack_vm_data_scripts/ubuntu2204.sh"
|
|
}
|
|
}
|
|
|
|
variable "ubuntu_2404" {
|
|
type = map(string)
|
|
default = {
|
|
name = "Ubuntu-Noble-24.04.img"
|
|
uuid = "fc3f705d-3cf5-4866-8ef6-ff6e2cdd4075"
|
|
user_data_file = "../../s2i2s_openstack_vm_data_scripts/ubuntu2404.sh"
|
|
}
|
|
}
|
|
|
|
variable "centos_7" {
|
|
type = map(string)
|
|
default = {
|
|
name = "CentOS-7"
|
|
uuid = "f0187a99-64f6-462a-ab5f-ef52fe62f2ca"
|
|
user_data_file = "../../s2i2s_openstack_vm_data_scripts/el.sh"
|
|
}
|
|
}
|
|
|
|
variable "almalinux_9" {
|
|
type = map(string)
|
|
default = {
|
|
name = "AlmaLinux-9.0-20220718"
|
|
uuid = "541650fc-dd19-4f38-bb1d-7333ed9dd688"
|
|
}
|
|
}
|
|
|
|
variable "ubuntu2204_data_file" {
|
|
default = "../../s2i2s_openstack_vm_data_scripts/ubuntu2204.sh"
|
|
}
|
|
|
|
variable "ubuntu2404_data_file" {
|
|
default = "../../s2i2s_openstack_vm_data_scripts/ubuntu2404.sh"
|
|
}
|
|
|
|
variable "el7_data_file" {
|
|
default = "../../s2i2s_openstack_vm_data_scripts/el.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 "flavor_list" {
|
|
type = map(string)
|
|
default = {
|
|
c1_small = "c1.small" #RAM 2 - VCPUs 2
|
|
c1_medium = "c1.medium" #RAM 4 - VCPUs 4
|
|
c1_large = "c1.large" #RAM 8 - VCPUs 8
|
|
c2_large = "c2.large" #RAM 16 -VCPUs 16
|
|
m1_medium = "m1.medium" #RAM 4 - VCPUs 2
|
|
m1_large = "m1.large" #RAM 8 - VCPUs 4
|
|
m1_xlarge = "m1.xlarge" #RAM 16 - VCPUs 8
|
|
m1_xxl = "m1.xxl" #RAM 32 - VCPUS 16
|
|
m2_small = "m2.small" #RAM 8 - VCPUs 2
|
|
m2_medium = "m2.medium" #RAM 16 - VCPUs 4
|
|
m2_large = "m2.large" #RAM 32 - VCPUs 8
|
|
m3_large = "m3.large" #RAM 64 - VCPUs 16
|
|
}
|
|
}
|
|
|
|
variable "policy_list" {
|
|
type = map(string)
|
|
default = {
|
|
soft_anti_affinity = "soft-anti-affinity"
|
|
anti_affinity = "anti-affinity"
|
|
affinity = "affinity"
|
|
soft_affinity = "soft-affinity"
|
|
}
|
|
}
|
|
|
|
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"
|
|
isti_vpn_gw1 = "146.48.80.101/32"
|
|
isti_vpn_gw2 = "146.48.80.102/32"
|
|
isti_vpn_gw3 = "146.48.80.103/32"
|
|
isti_net_cidr = "146.48.80.0/21"
|
|
s2i2s_net_cidr = "146.48.28.0/22"
|
|
infrascience_net_cidr = "146.48.122.0/23"
|
|
}
|
|
}
|
|
|
|
variable "networks_allocated_to_isti" {
|
|
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"
|
|
}
|
|
}
|
|
|
|
variable "default_security_group_name" {
|
|
default = "default_for_all"
|
|
}
|
|
|