163 lines
6.8 KiB
HCL
163 lines
6.8 KiB
HCL
# 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"
|
|
}
|
|
}
|
|
|
|
|
|
#
|
|
# Uses common_variables as module
|
|
#
|
|
module "common_variables" {
|
|
source = "../../modules/common_variables"
|
|
}
|
|
|
|
|
|
module "instance_with_data_volume" {
|
|
source = "../../modules/instance_with_data_volume"
|
|
|
|
instances_with_data_volume_map = {
|
|
geona = {
|
|
name = "geoserver-geona",
|
|
description = "Geoserver geona instance",
|
|
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],
|
|
server_groups_ids = [],
|
|
image_ref = module.common_variables.ubuntu_1804,
|
|
volume = {
|
|
name = "geoserver-geona_data_volume",
|
|
size = "50",
|
|
device = "/dev/vdb"
|
|
}
|
|
},
|
|
esquiline = {
|
|
name = "geoserver-esquiline",
|
|
description = "Geoserver esquiline instance",
|
|
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],
|
|
server_groups_ids = [],
|
|
image_ref = module.common_variables.ubuntu_1804,
|
|
volume = {
|
|
name = "geoserver-esquiline_data_volume",
|
|
size = "20",
|
|
device = "/dev/vdb",
|
|
}
|
|
},
|
|
ariadne = {
|
|
name = "geoserver-ariadne",
|
|
description = "Geoserver ariadne instance",
|
|
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],
|
|
server_groups_ids = [],
|
|
image_ref = module.common_variables.ubuntu_1804,
|
|
volume = {
|
|
name = "geoserver-ariadne_data_volume",
|
|
size = "20",
|
|
device = "/dev/vdb",
|
|
}
|
|
},
|
|
grsf = {
|
|
name = "geoserver-grsf",
|
|
description = "Geoserver grsf instance",
|
|
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],
|
|
server_groups_ids = [],
|
|
image_ref = module.common_variables.ubuntu_1804
|
|
volume = {
|
|
name = "geoserver-grsf_data_volume"
|
|
size = "40",
|
|
device = "/dev/vdb",
|
|
}
|
|
},
|
|
protectedareaimpactmaps = {
|
|
name = "geoserver-protectedareaimpactmaps",
|
|
description = "Geoserver protectedareaimpactmaps instance",
|
|
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],
|
|
server_groups_ids = [],
|
|
image_ref = module.common_variables.ubuntu_1804,
|
|
volume = {
|
|
name = "geoserver-protectedareaimpactmaps_data_volume"
|
|
size = "70",
|
|
device = "/dev/vdb",
|
|
}
|
|
}
|
|
sdi-lab = {
|
|
name = "geoserver-sdi-lab",
|
|
description = "Geoserver sdi-lab instance",
|
|
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],
|
|
server_groups_ids = [],
|
|
image_ref = module.common_variables.ubuntu_1804,
|
|
volume = {
|
|
name = "geoserver-sdi-lab_data_volume",
|
|
size = "100",
|
|
device = "/dev/vdb",
|
|
}
|
|
}
|
|
tunaatlas = {
|
|
name = "geoserver-tunaatlas",
|
|
description = "Geoserver tunaatlas instance",
|
|
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],
|
|
server_groups_ids = [],
|
|
image_ref = module.common_variables.ubuntu_1804,
|
|
volume = {
|
|
name = "geoserver-tunaatlas_data_volume",
|
|
size = "60",
|
|
device = "/dev/vdb",
|
|
}
|
|
}
|
|
wecafc-firms = {
|
|
name = "geoserver-wecafc-firms",
|
|
description = "Geoserver wecafc-firms instance",
|
|
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],
|
|
server_groups_ids = [],
|
|
image_ref = module.common_variables.ubuntu_1804,
|
|
volume = {
|
|
name = "geoserver-wecafc-firms_data_volume",
|
|
size = "40",
|
|
device = "/dev/vdb",
|
|
}
|
|
}
|
|
aquacultureatlas = {
|
|
name = "geoserver-aquacultureatlas",
|
|
description = "Geoserver aquacultureatlas instance",
|
|
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],
|
|
server_groups_ids = [],
|
|
image_ref = module.common_variables.ubuntu_1804,
|
|
volume = {
|
|
name = "geoserver-aquacultureatlas_data_volume",
|
|
size = "50",
|
|
device = "/dev/vdb",
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
} |