Switched geoserver to instance_with_data_volume module

This commit is contained in:
Luca Frosini 2023-12-05 17:46:36 +01:00
parent 501df789bb
commit d6daf6315f
2 changed files with 58 additions and 31 deletions

View File

@ -6,6 +6,7 @@ provider "registry.terraform.io/terraform-provider-openstack/openstack" {
constraints = "~> 1.53.0" constraints = "~> 1.53.0"
hashes = [ hashes = [
"h1:YLGvYkSuagyP5orUTyKNK+JhzS17EFTUDpZ5R5/fFv4=", "h1:YLGvYkSuagyP5orUTyKNK+JhzS17EFTUDpZ5R5/fFv4=",
"h1:ZSJPqrlaHQ3sj7wyJuPSG+NblFZbAA6Y0d3GjSJf3o8=",
"zh:09da7ca98ffd3de7b9ce36c4c13446212a6e763ba1162be71b50f95d453cb68e", "zh:09da7ca98ffd3de7b9ce36c4c13446212a6e763ba1162be71b50f95d453cb68e",
"zh:14041bcbb87312411d88612056ed185650bfd01284b8ea0761ce8105a331708e", "zh:14041bcbb87312411d88612056ed185650bfd01284b8ea0761ce8105a331708e",
"zh:35bf4c788fdbc17c8e40ebc7b33c7de4b45a2fa2efaa657b10f0e3bd37c9627f", "zh:35bf4c788fdbc17c8e40ebc7b33c7de4b45a2fa2efaa657b10f0e3bd37c9627f",

View File

@ -26,11 +26,10 @@ module "common_variables" {
} }
module "geo_service" { module "instance_with_data_volume" {
source = "../../modules/instance_with_data_volume"
source = "../../modules/geo_services" instances_with_data_volume_map = {
geo_service_instances_map = {
geona = { geona = {
name = "geoserver-geona", name = "geoserver-geona",
description = "Geoserver geona instance", description = "Geoserver geona instance",
@ -38,9 +37,12 @@ module "geo_service" {
networks = ["d4s-dev-cloud-main", module.common_variables.networks_list.shared_postgresql], 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], security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers],
server_groups_ids = [], server_groups_ids = [],
image_ref = module.common_variables.ubuntu_1804 image_ref = module.common_variables.ubuntu_1804,
vol_data_name = "geoserver-geona_data_volume", volume = {
vol_data_size = "50" name = "geoserver-geona_data_volume",
size = "50",
device = "/dev/vdb"
}
}, },
esquiline = { esquiline = {
name = "geoserver-esquiline", name = "geoserver-esquiline",
@ -49,9 +51,12 @@ module "geo_service" {
networks = ["d4s-dev-cloud-main", module.common_variables.networks_list.shared_postgresql], 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], security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers],
server_groups_ids = [], server_groups_ids = [],
image_ref = module.common_variables.ubuntu_1804 image_ref = module.common_variables.ubuntu_1804,
vol_data_name = "geoserver-esquiline_data_volume", volume = {
vol_data_size = "20" name = "geoserver-esquiline_data_volume",
size = "20",
device = "/dev/vdb",
}
}, },
ariadne = { ariadne = {
name = "geoserver-ariadne", name = "geoserver-ariadne",
@ -60,9 +65,12 @@ module "geo_service" {
networks = ["d4s-dev-cloud-main", module.common_variables.networks_list.shared_postgresql], 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], security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers],
server_groups_ids = [], server_groups_ids = [],
image_ref = module.common_variables.ubuntu_1804 image_ref = module.common_variables.ubuntu_1804,
vol_data_name = "geoserver-ariadne_data_volume", volume = {
vol_data_size = "20" name = "geoserver-ariadne_data_volume",
size = "20",
device = "/dev/vdb",
}
}, },
grsf = { grsf = {
name = "geoserver-grsf", name = "geoserver-grsf",
@ -72,8 +80,11 @@ module "geo_service" {
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers], security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers],
server_groups_ids = [], server_groups_ids = [],
image_ref = module.common_variables.ubuntu_1804 image_ref = module.common_variables.ubuntu_1804
vol_data_name = "geoserver-grsf_data_volume", volume = {
vol_data_size = "40" name = "geoserver-grsf_data_volume"
size = "40",
device = "/dev/vdb",
}
}, },
protectedareaimpactmaps = { protectedareaimpactmaps = {
name = "geoserver-protectedareaimpactmaps", name = "geoserver-protectedareaimpactmaps",
@ -82,9 +93,12 @@ module "geo_service" {
networks = ["d4s-dev-cloud-main", module.common_variables.networks_list.shared_postgresql], 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], security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers],
server_groups_ids = [], server_groups_ids = [],
image_ref = module.common_variables.ubuntu_1804 image_ref = module.common_variables.ubuntu_1804,
vol_data_name = "geoserver-protectedareaimpactmaps_data_volume", volume = {
vol_data_size = "70" name = "geoserver-protectedareaimpactmaps_data_volume"
size = "70",
device = "/dev/vdb",
}
} }
sdi-lab = { sdi-lab = {
name = "geoserver-sdi-lab", name = "geoserver-sdi-lab",
@ -93,9 +107,12 @@ module "geo_service" {
networks = ["d4s-dev-cloud-main", module.common_variables.networks_list.shared_postgresql], 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], security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers],
server_groups_ids = [], server_groups_ids = [],
image_ref = module.common_variables.ubuntu_1804 image_ref = module.common_variables.ubuntu_1804,
vol_data_name = "geoserver-sdi-lab_data_volume", volume = {
vol_data_size = "100" name = "geoserver-sdi-lab_data_volume",
size = "100",
device = "/dev/vdb",
}
} }
tunaatlas = { tunaatlas = {
name = "geoserver-tunaatlas", name = "geoserver-tunaatlas",
@ -104,9 +121,12 @@ module "geo_service" {
networks = ["d4s-dev-cloud-main", module.common_variables.networks_list.shared_postgresql], 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], security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers],
server_groups_ids = [], server_groups_ids = [],
image_ref = module.common_variables.ubuntu_1804 image_ref = module.common_variables.ubuntu_1804,
vol_data_name = "geoserver-tunaatlas_data_volume", volume = {
vol_data_size = "60" name = "geoserver-tunaatlas_data_volume",
size = "60",
device = "/dev/vdb",
}
} }
wecafc-firms = { wecafc-firms = {
name = "geoserver-wecafc-firms", name = "geoserver-wecafc-firms",
@ -115,9 +135,12 @@ module "geo_service" {
networks = ["d4s-dev-cloud-main", module.common_variables.networks_list.shared_postgresql], 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], security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers],
server_groups_ids = [], server_groups_ids = [],
image_ref = module.common_variables.ubuntu_1804 image_ref = module.common_variables.ubuntu_1804,
vol_data_name = "geoserver-wecafc-firms_data_volume", volume = {
vol_data_size = "40" name = "geoserver-wecafc-firms_data_volume",
size = "40",
device = "/dev/vdb",
}
} }
aquacultureatlas = { aquacultureatlas = {
name = "geoserver-aquacultureatlas", name = "geoserver-aquacultureatlas",
@ -126,9 +149,12 @@ module "geo_service" {
networks = ["d4s-dev-cloud-main", module.common_variables.networks_list.shared_postgresql], 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], security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers],
server_groups_ids = [], server_groups_ids = [],
image_ref = module.common_variables.ubuntu_1804 image_ref = module.common_variables.ubuntu_1804,
vol_data_name = "geoserver-aquacultureatlas_data_volume", volume = {
vol_data_size = "50" name = "geoserver-aquacultureatlas_data_volume",
size = "50",
device = "/dev/vdb",
}
} }
} }