main #4
|
@ -1 +0,0 @@
|
|||
../../modules/generic_smartgears_service/generic_smartgears_service.tf
|
|
@ -1,74 +1,4 @@
|
|||
#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
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
|
||||
|
||||
# #The Geoportal Instance
|
||||
# variable "smartgears_service_instances_map" {
|
||||
# type = map(object({
|
||||
# name = string
|
||||
|
@ -78,7 +8,16 @@ variable "smartgears_service_instances_map" {
|
|||
# security_groups = list(string)
|
||||
# block_device_uuid = string
|
||||
# }))
|
||||
# default = local.smartgears_service_instances_map
|
||||
# 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
|
||||
# }
|
||||
# }
|
||||
|
||||
|
||||
# }
|
||||
|
|
|
@ -16,3 +16,28 @@ data "terraform_remote_state" "privnet_dns_router" {
|
|||
path = "../project-setup/terraform.tfstate"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
module "smartgears_service_generic" {
|
||||
source = "../../modules/generic_smartgears_service"
|
||||
|
||||
smartgears_service_instances_map = {
|
||||
geoportal_service = {
|
||||
name = "geoportal-cms",
|
||||
description = "The Geoportal instance",
|
||||
flavor = "m1.medium",
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
# Define required providers
|
||||
terraform {
|
||||
required_version = ">= 0.14.0"
|
||||
required_providers {
|
||||
openstack = {
|
||||
source = "terraform-provider-openstack/openstack"
|
||||
version = "~> 1.53.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue