From 6db6c0cc961daa7e2a28152a85f2bb995f3ca503 Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Mon, 5 Feb 2024 15:45:20 +0100 Subject: [PATCH] Added geonetwork Itineris Carbon in production --- .../d4s-production/geonetwork/main.tf | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/openstack-tf/d4s-production/geonetwork/main.tf b/openstack-tf/d4s-production/geonetwork/main.tf index b1e97051..33cb3d69 100644 --- a/openstack-tf/d4s-production/geonetwork/main.tf +++ b/openstack-tf/d4s-production/geonetwork/main.tf @@ -181,6 +181,20 @@ module "instance_with_data_volume" { size = "40", device = "/dev/vdb" } + }, + geonetwork_itineris_carbon = { + name = "geonetwork-itineris-carbon", + description = "This instance serves geonetwork service", + flavor = module.common_variables.flavor_list.m2_small, + networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.shared_postgresql], + security_groups = [data.terraform_remote_state.privnet_dns_router.outputs.default_security_group_name, data.terraform_remote_state.privnet_dns_router.outputs.security_group_list.http_and_https_from_the_load_balancers], + image_ref = module.common_variables.ubuntu_1804 + server_groups_ids = [], + volume = { + name = "geonetwork_itineris_carbon_data_volume", + size = "20", + device = "/dev/vdb" + } } } } @@ -283,6 +297,14 @@ module "dns_records_create" { ttl = 8600 type = "CNAME" records = [local.cname_target] + }, + geonetwork-itineris-carbon = { + zone_id = data.terraform_remote_state.privnet_dns_router.outputs.dns_zone_id + name = join(".", ["geonetwork-itineris-carbon", data.terraform_remote_state.privnet_dns_router.outputs.dns_zone.zone_name]) + description = "Geonetwork geonetwork-itineris-carbon" + ttl = 8600 + type = "CNAME" + records = [local.cname_target] } } }