From 79ab1c58d35d29c44310eafd841a3647696addc3 Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Tue, 9 Apr 2024 15:56:35 +0200 Subject: [PATCH] Added geonetwork Gaia Blu Lab --- .../d4s-production/geonetwork/main.tf | 22 +++ .../geonetwork/terraform.tfstate | 170 +++++++++++++++++- 2 files changed, 189 insertions(+), 3 deletions(-) diff --git a/openstack-tf/d4s-production/geonetwork/main.tf b/openstack-tf/d4s-production/geonetwork/main.tf index 13eeb4a..a125d8c 100644 --- a/openstack-tf/d4s-production/geonetwork/main.tf +++ b/openstack-tf/d4s-production/geonetwork/main.tf @@ -195,6 +195,20 @@ module "instance_with_data_volume" { size = "20", device = "/dev/vdb" } + }, + geonetwork_gaiablulab = { + name = "geonetwork-gaiablulab", + 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_gaiablulab_data_volume", + size = "20", + device = "/dev/vdb" + } } } } @@ -305,6 +319,14 @@ module "dns_records_create" { ttl = 8600 type = "CNAME" records = [local.cname_target] + }, + geonetwork-gaiablulab = { + zone_id = data.terraform_remote_state.privnet_dns_router.outputs.dns_zone_id + name = join(".", ["geonetwork-gaiablulab", data.terraform_remote_state.privnet_dns_router.outputs.dns_zone.zone_name]) + description = "Geonetwork geonetwork-gaiablulab" + ttl = 8600 + type = "CNAME" + records = [local.cname_target] } } } diff --git a/openstack-tf/d4s-production/geonetwork/terraform.tfstate b/openstack-tf/d4s-production/geonetwork/terraform.tfstate index 909aee8..f2942b6 100644 --- a/openstack-tf/d4s-production/geonetwork/terraform.tfstate +++ b/openstack-tf/d4s-production/geonetwork/terraform.tfstate @@ -1,7 +1,7 @@ { "version": 4, "terraform_version": "1.6.4", - "serial": 61, + "serial": 66, "lineage": "08d2359a-f46e-f9fe-02d9-4cc9cfb46e25", "outputs": {}, "resources": [ @@ -476,6 +476,31 @@ "data.terraform_remote_state.privnet_dns_router" ] }, + { + "index_key": "geonetwork-gaiablulab", + "schema_version": 0, + "attributes": { + "description": "Geonetwork geonetwork-gaiablulab", + "disable_status_check": false, + "id": "74135b34-1a9c-4c01-8cf0-22450a5660c4/61e5907e-82e3-4628-a6f2-d3d31ae65b3a", + "name": "geonetwork-gaiablulab.cloud.d4science.org.", + "project_id": "1b45adf388934758b56d0dfdb4bfacf3", + "records": [ + "main-lb.cloud.d4science.org." + ], + "region": "isti_area_pi_1", + "timeouts": null, + "ttl": 8600, + "type": "CNAME", + "value_specs": null, + "zone_id": "74135b34-1a9c-4c01-8cf0-22450a5660c4" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH19", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router" + ] + }, { "index_key": "geonetwork-globalfisheriesatlas", "schema_version": 0, @@ -815,6 +840,35 @@ "data.terraform_remote_state.privnet_dns_router" ] }, + { + "index_key": "geonetwork_gaiablulab", + "schema_version": 0, + "attributes": { + "attachment": [], + "availability_zone": "nova", + "consistency_group_id": null, + "description": "", + "enable_online_resize": null, + "id": "1a1334e0-941d-43ec-a7f1-39bd464b7f19", + "image_id": null, + "metadata": {}, + "multiattach": null, + "name": "geonetwork_gaiablulab_data_volume", + "region": "isti_area_pi_1", + "scheduler_hints": [], + "size": 20, + "snapshot_id": "", + "source_replica": null, + "source_vol_id": "", + "timeouts": null, + "volume_type": "cephUnencrypted" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router" + ] + }, { "index_key": "geonetwork_globalfisheriesatlas", "schema_version": 0, @@ -924,7 +978,13 @@ "index_key": "geonetwork_itineris", "schema_version": 0, "attributes": { - "attachment": [], + "attachment": [ + { + "device": "/dev/vdb", + "id": "e1fcc19d-bba3-47c6-bea1-0d6704cb88cb", + "instance_id": "ea1eac09-f678-4a26-b9cd-5808c19b0b9f" + } + ], "availability_zone": "nova", "consistency_group_id": null, "description": "", @@ -1382,6 +1442,89 @@ "data.terraform_remote_state.privnet_dns_router" ] }, + { + "index_key": "geonetwork_gaiablulab", + "schema_version": 0, + "attributes": { + "access_ip_v4": "10.1.41.183", + "access_ip_v6": "", + "admin_pass": null, + "all_metadata": {}, + "all_tags": [], + "availability_zone": "cnr-isti-nova-a", + "availability_zone_hints": "cnr-isti-nova-a", + "block_device": [ + { + "boot_index": 0, + "delete_on_termination": false, + "destination_type": "volume", + "device_type": "", + "disk_bus": "", + "guest_format": "", + "multiattach": false, + "source_type": "image", + "uuid": "7ed6a2cd-2b07-482e-8ce4-f018dff16c89", + "volume_size": 10, + "volume_type": "" + } + ], + "config_drive": null, + "created": "2024-04-09 13:32:29 +0000 UTC", + "flavor_id": "10", + "flavor_name": "m2.small", + "floating_ip": null, + "force_delete": false, + "id": "fe48b098-bccd-4201-b20e-238eb0ce4357", + "image_id": "Attempt to boot from volume - no image supplied", + "image_name": null, + "key_pair": "Giancarlo Panichi", + "metadata": null, + "name": "geonetwork-gaiablulab", + "network": [ + { + "access_network": false, + "fixed_ip_v4": "10.1.41.183", + "fixed_ip_v6": "", + "floating_ip": "", + "mac": "fa:16:3e:f5:7c:b8", + "name": "d4s-production-cloud-main", + "port": "", + "uuid": "020df98d-ae72-452a-b376-3b6dc289acac" + }, + { + "access_network": false, + "fixed_ip_v4": "192.168.3.83", + "fixed_ip_v6": "", + "floating_ip": "", + "mac": "fa:16:3e:f4:b5:a1", + "name": "postgresql-srv-net", + "port": "", + "uuid": "f6450bc8-1345-4b52-8f34-2903c0cca7f8" + } + ], + "network_mode": null, + "personality": [], + "power_state": "active", + "region": "isti_area_pi_1", + "scheduler_hints": [], + "security_groups": [ + "default_for_all", + "traffic_from_the_main_load_balancers" + ], + "stop_before_destroy": false, + "tags": null, + "timeouts": null, + "updated": "2024-04-09 13:33:16 +0000 UTC", + "user_data": "47d4769e61324c305c4b70ed6673de4fad84150d", + "vendor_options": [], + "volume": [] + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router" + ] + }, { "index_key": "geonetwork_globalfisheriesatlas", "schema_version": 0, @@ -1701,7 +1844,7 @@ "traffic_from_the_main_load_balancers" ], "stop_before_destroy": false, - "tags": null, + "tags": [], "timeouts": null, "updated": "2024-03-26 10:07:01 +0000 UTC", "user_data": "47d4769e61324c305c4b70ed6673de4fad84150d", @@ -2201,6 +2344,27 @@ "module.instance_with_data_volume.openstack_compute_instance_v2.instance_with_data_volume" ] }, + { + "index_key": "geonetwork_gaiablulab", + "schema_version": 0, + "attributes": { + "device": "/dev/vdb", + "id": "fe48b098-bccd-4201-b20e-238eb0ce4357/1a1334e0-941d-43ec-a7f1-39bd464b7f19", + "instance_id": "fe48b098-bccd-4201-b20e-238eb0ce4357", + "multiattach": null, + "region": "isti_area_pi_1", + "timeouts": null, + "vendor_options": [], + "volume_id": "1a1334e0-941d-43ec-a7f1-39bd464b7f19" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router", + "module.instance_with_data_volume.openstack_blockstorage_volume_v3.instance_data_volume", + "module.instance_with_data_volume.openstack_compute_instance_v2.instance_with_data_volume" + ] + }, { "index_key": "geonetwork_globalfisheriesatlas", "schema_version": 0,