diff --git a/openstack-tf/d4s-dev/geoportal/inputs.tf b/openstack-tf/d4s-dev/geoportal/inputs.tf deleted file mode 100644 index 1b1fe04..0000000 --- a/openstack-tf/d4s-dev/geoportal/inputs.tf +++ /dev/null @@ -1,23 +0,0 @@ -# #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 -# } -# } - -# } diff --git a/openstack-tf/d4s-dev/geoportal/main.tf b/openstack-tf/d4s-dev/geoportal/main.tf index eabcff0..4755adb 100644 --- a/openstack-tf/d4s-dev/geoportal/main.tf +++ b/openstack-tf/d4s-dev/geoportal/main.tf @@ -29,15 +29,6 @@ module "smartgears_service_generic" { 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 } } } diff --git a/openstack-tf/d4s-dev/uri-resolver/generic_smartgears_service.tf b/openstack-tf/d4s-dev/uri-resolver/generic_smartgears_service.tf deleted file mode 120000 index b8c2cf1..0000000 --- a/openstack-tf/d4s-dev/uri-resolver/generic_smartgears_service.tf +++ /dev/null @@ -1 +0,0 @@ -../../modules/generic_smartgears_service/generic_smartgears_service.tf \ No newline at end of file diff --git a/openstack-tf/d4s-dev/uri-resolver/inputs.tf b/openstack-tf/d4s-dev/uri-resolver/inputs.tf deleted file mode 100644 index f17202c..0000000 --- a/openstack-tf/d4s-dev/uri-resolver/inputs.tf +++ /dev/null @@ -1,33 +0,0 @@ - -#The URI-Resolver instances -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 = { - # 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 - }, - # URI-Resolver instance 2 - uri_resolver_service_i2 = { - name = "data1", - description = "The data1 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 - } - } - -} diff --git a/openstack-tf/d4s-dev/uri-resolver/main.tf b/openstack-tf/d4s-dev/uri-resolver/main.tf index 3290183..ac1cd99 100644 --- a/openstack-tf/d4s-dev/uri-resolver/main.tf +++ b/openstack-tf/d4s-dev/uri-resolver/main.tf @@ -17,3 +17,29 @@ data "terraform_remote_state" "privnet_dns_router" { } } + +module "smartgears_service_generic" { + source = "../../modules/generic_smartgears_service" + + smartgears_service_instances_map = { + 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 + }, + # URI-Resolver instance 2 + uri_resolver_service_i2 = { + name = "data1", + description = "The data1 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 + } + } +} + +