85 lines
2.7 KiB
HCL
85 lines
2.7 KiB
HCL
#The Geoportal Instance
|
|
variable "smartgears_service_instances_map" {
|
|
type = map(object({
|
|
name = string
|
|
description = string
|
|
flavor = string
|
|
networks = list(string)
|
|
security_groups = list(string)
|
|
block_device_uuid = string
|
|
}))
|
|
default = {
|
|
# Geoportal instance
|
|
geoportal_service = {
|
|
name = "geoportal-cms",
|
|
description = "The Geoportal instance",
|
|
flavor = "m1_large",
|
|
networks = ["d4s-dev-cloud-main", "postgresql-srv-net"],
|
|
security_groups = ["default", "http and https from the load balancers"]
|
|
block_device_uuid = "7ed6a2cd-2b07-482e-8ce4-f018dff16c89" #ubuntu_18_04.uuid of DEV
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#Default smartgears_service is EMPTY. Override it to create a proper smartegears plan
|
|
|
|
# locals {
|
|
# tags = {
|
|
# security_group_default = var.security_group_list.default
|
|
# security_group_http_and_https_lb = var.security_group_list.http_and_https_from_the_load_balancers
|
|
# ubuntu_18_04_instance_uuid = var.ubuntu_1804.uuid
|
|
# }
|
|
# }
|
|
|
|
# locals {
|
|
# security_groups_1 = toset([var.security_group_list.default, var.security_group_list.http_and_https_from_the_load_balancers])
|
|
# }
|
|
|
|
|
|
# variable "security_groups" {
|
|
# type = set(string)
|
|
# default = ["${security_group_default}", var.security_group_list.http_and_https_from_the_load_balancers]
|
|
# }
|
|
|
|
|
|
# locals {
|
|
|
|
# smartgears_service_instances_map = {
|
|
# geoportal_service = {
|
|
# name = "geoportal-cms",
|
|
# description = "The Geoportal instance",
|
|
# flavor = "${var.flavor_list.m1_large}",
|
|
# networks = ["d4s-dev-cloud-main", "postgresql-srv-net"],
|
|
# security_groups = ["default", "http and https from the load balancers"]
|
|
# block_device_uuid = "7ed6a2cd-2b07-482e-8ce4-f018dff16c89" #ubuntu_18_04.uuid of DEV
|
|
# },
|
|
# # URI-Resolver instance 1
|
|
# uri_resolver_service_i1 = {
|
|
# name = "data",
|
|
# description = "The data instance",
|
|
# flavor = "m1.medium",
|
|
# networks = ["d4s-dev-cloud-main"],
|
|
# security_groups = ["default", "http and https from the load balancers"]
|
|
# block_device_uuid = "7ed6a2cd-2b07-482e-8ce4-f018dff16c89" #ubuntu_18_04.uuid of DEV
|
|
# }
|
|
# }
|
|
# }
|
|
|
|
|
|
# variable "smartgears_service_instances_map" {
|
|
# type = map(object({
|
|
# name = string
|
|
# description = string
|
|
# flavor = string
|
|
# networks = list(string)
|
|
# security_groups = list(string)
|
|
# block_device_uuid = string
|
|
# }))
|
|
# default = local.smartgears_service_instances_map
|
|
# }
|
|
|
|
|