2023-12-04 16:56:44 +01:00
|
|
|
# Define required providers
|
|
|
|
terraform {
|
|
|
|
required_version = ">= 0.14.0"
|
|
|
|
required_providers {
|
|
|
|
openstack = {
|
|
|
|
source = "terraform-provider-openstack/openstack"
|
|
|
|
version = "~> 1.53.0"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
data "terraform_remote_state" "privnet_dns_router" {
|
|
|
|
backend = "local"
|
|
|
|
|
|
|
|
config = {
|
|
|
|
path = "../project-setup/terraform.tfstate"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-12-05 11:22:22 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# Uses common_variables as module
|
|
|
|
#
|
|
|
|
module "common_variables" {
|
|
|
|
source = "../../modules/common_variables"
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2023-12-04 16:56:44 +01:00
|
|
|
module "geo_service" {
|
|
|
|
|
|
|
|
source = "../../modules/geo_services"
|
|
|
|
|
|
|
|
geo_service_instances_map = {
|
|
|
|
geona = {
|
|
|
|
name = "geoserver-geona",
|
|
|
|
description = "Geoserver geona instance",
|
2023-12-05 11:22:22 +01:00
|
|
|
flavor = module.common_variables.flavor_list.m1_large,
|
|
|
|
networks = ["d4s-dev-cloud-main", module.common_variables.networks_list.shared_postgresql],
|
|
|
|
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers],
|
2023-12-05 10:06:23 +01:00
|
|
|
server_groups_ids = [],
|
2023-12-05 11:22:22 +01:00
|
|
|
image_ref = module.common_variables.ubuntu_1804
|
2023-12-04 16:56:44 +01:00
|
|
|
vol_data_name = "geoserver-geona_data_volume",
|
|
|
|
vol_data_size = "50"
|
|
|
|
},
|
|
|
|
esquiline = {
|
|
|
|
name = "geoserver-esquiline",
|
|
|
|
description = "Geoserver esquiline instance",
|
2023-12-05 11:22:22 +01:00
|
|
|
flavor = module.common_variables.flavor_list.m2_small,
|
|
|
|
networks = ["d4s-dev-cloud-main", module.common_variables.networks_list.shared_postgresql],
|
|
|
|
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers],
|
2023-12-05 10:06:23 +01:00
|
|
|
server_groups_ids = [],
|
2023-12-05 11:22:22 +01:00
|
|
|
image_ref = module.common_variables.ubuntu_1804
|
2023-12-04 16:56:44 +01:00
|
|
|
vol_data_name = "geoserver-esquiline_data_volume",
|
|
|
|
vol_data_size = "20"
|
|
|
|
},
|
|
|
|
ariadne = {
|
|
|
|
name = "geoserver-ariadne",
|
|
|
|
description = "Geoserver ariadne instance",
|
2023-12-05 11:22:22 +01:00
|
|
|
flavor = module.common_variables.flavor_list.m2_small,
|
|
|
|
networks = ["d4s-dev-cloud-main", module.common_variables.networks_list.shared_postgresql],
|
|
|
|
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers],
|
2023-12-05 10:06:23 +01:00
|
|
|
server_groups_ids = [],
|
2023-12-05 11:22:22 +01:00
|
|
|
image_ref = module.common_variables.ubuntu_1804
|
2023-12-04 16:56:44 +01:00
|
|
|
vol_data_name = "geoserver-ariadne_data_volume",
|
|
|
|
vol_data_size = "20"
|
|
|
|
},
|
|
|
|
grsf = {
|
|
|
|
name = "geoserver-grsf",
|
|
|
|
description = "Geoserver grsf instance",
|
2023-12-05 11:22:22 +01:00
|
|
|
flavor = module.common_variables.flavor_list.m1_large,
|
|
|
|
networks = ["d4s-dev-cloud-main", module.common_variables.networks_list.shared_postgresql],
|
|
|
|
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers],
|
2023-12-05 10:06:23 +01:00
|
|
|
server_groups_ids = [],
|
2023-12-05 11:22:22 +01:00
|
|
|
image_ref = module.common_variables.ubuntu_1804
|
2023-12-04 16:56:44 +01:00
|
|
|
vol_data_name = "geoserver-grsf_data_volume",
|
|
|
|
vol_data_size = "40"
|
|
|
|
},
|
|
|
|
protectedareaimpactmaps = {
|
|
|
|
name = "geoserver-protectedareaimpactmaps",
|
|
|
|
description = "Geoserver protectedareaimpactmaps instance",
|
2023-12-05 11:22:22 +01:00
|
|
|
flavor = module.common_variables.flavor_list.c1_large,
|
|
|
|
networks = ["d4s-dev-cloud-main", module.common_variables.networks_list.shared_postgresql],
|
|
|
|
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers],
|
2023-12-05 10:06:23 +01:00
|
|
|
server_groups_ids = [],
|
2023-12-05 11:22:22 +01:00
|
|
|
image_ref = module.common_variables.ubuntu_1804
|
2023-12-04 16:56:44 +01:00
|
|
|
vol_data_name = "geoserver-protectedareaimpactmaps_data_volume",
|
|
|
|
vol_data_size = "70"
|
|
|
|
}
|
|
|
|
sdi-lab = {
|
|
|
|
name = "geoserver-sdi-lab",
|
|
|
|
description = "Geoserver sdi-lab instance",
|
2023-12-05 11:22:22 +01:00
|
|
|
flavor = module.common_variables.flavor_list.m1_large,
|
|
|
|
networks = ["d4s-dev-cloud-main", module.common_variables.networks_list.shared_postgresql],
|
|
|
|
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers],
|
2023-12-05 10:06:23 +01:00
|
|
|
server_groups_ids = [],
|
2023-12-05 11:22:22 +01:00
|
|
|
image_ref = module.common_variables.ubuntu_1804
|
2023-12-04 16:56:44 +01:00
|
|
|
vol_data_name = "geoserver-sdi-lab_data_volume",
|
|
|
|
vol_data_size = "100"
|
|
|
|
}
|
|
|
|
tunaatlas = {
|
|
|
|
name = "geoserver-tunaatlas",
|
|
|
|
description = "Geoserver tunaatlas instance",
|
2023-12-05 11:22:22 +01:00
|
|
|
flavor = module.common_variables.flavor_list.m1_large,
|
|
|
|
networks = ["d4s-dev-cloud-main", module.common_variables.networks_list.shared_postgresql],
|
|
|
|
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers],
|
2023-12-05 10:06:23 +01:00
|
|
|
server_groups_ids = [],
|
2023-12-05 11:22:22 +01:00
|
|
|
image_ref = module.common_variables.ubuntu_1804
|
2023-12-04 16:56:44 +01:00
|
|
|
vol_data_name = "geoserver-tunaatlas_data_volume",
|
|
|
|
vol_data_size = "60"
|
|
|
|
}
|
|
|
|
wecafc-firms = {
|
|
|
|
name = "geoserver-wecafc-firms",
|
|
|
|
description = "Geoserver wecafc-firms instance",
|
2023-12-05 11:22:22 +01:00
|
|
|
flavor = module.common_variables.flavor_list.m1_large,
|
|
|
|
networks = ["d4s-dev-cloud-main", module.common_variables.networks_list.shared_postgresql],
|
|
|
|
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers],
|
2023-12-05 10:06:23 +01:00
|
|
|
server_groups_ids = [],
|
2023-12-05 11:22:22 +01:00
|
|
|
image_ref = module.common_variables.ubuntu_1804
|
2023-12-04 16:56:44 +01:00
|
|
|
vol_data_name = "geoserver-wecafc-firms_data_volume",
|
|
|
|
vol_data_size = "40"
|
|
|
|
}
|
|
|
|
aquacultureatlas = {
|
|
|
|
name = "geoserver-aquacultureatlas",
|
|
|
|
description = "Geoserver aquacultureatlas instance",
|
2023-12-05 11:22:22 +01:00
|
|
|
flavor = module.common_variables.flavor_list.m1_large,
|
|
|
|
networks = ["d4s-dev-cloud-main", module.common_variables.networks_list.shared_postgresql],
|
|
|
|
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers],
|
2023-12-05 10:06:23 +01:00
|
|
|
server_groups_ids = [],
|
2023-12-05 11:22:22 +01:00
|
|
|
image_ref = module.common_variables.ubuntu_1804
|
2023-12-04 16:56:44 +01:00
|
|
|
vol_data_name = "geoserver-aquacultureatlas_data_volume",
|
|
|
|
vol_data_size = "50"
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|