From 5ba4e41806691e88c7c63a822bec0526fe2124a4 Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Thu, 18 Jan 2024 10:59:00 +0100 Subject: [PATCH] Added CNAME to geoservers --- .../geoserver/terraform.tfstate | 398 ++++++++++++++++-- 1 file changed, 374 insertions(+), 24 deletions(-) diff --git a/openstack-tf/d4s-production/geoserver/terraform.tfstate b/openstack-tf/d4s-production/geoserver/terraform.tfstate index b51578a..66b7e54 100644 --- a/openstack-tf/d4s-production/geoserver/terraform.tfstate +++ b/openstack-tf/d4s-production/geoserver/terraform.tfstate @@ -1,7 +1,7 @@ { "version": 4, - "terraform_version": "1.6.5", - "serial": 34, + "terraform_version": "1.6.4", + "serial": 46, "lineage": "de164650-89d7-4446-7bbf-4d84dd648c8e", "outputs": {}, "resources": [ @@ -383,6 +383,290 @@ } ] }, + { + "module": "module.dns_records_create", + "mode": "managed", + "type": "openstack_dns_recordset_v2", + "name": "add_dns_recordset", + "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", + "instances": [ + { + "index_key": "geoserver-aquacultureatlas", + "schema_version": 0, + "attributes": { + "description": "Geoserver geoserver-aquacultureatlas", + "disable_status_check": false, + "id": "74135b34-1a9c-4c01-8cf0-22450a5660c4/5ff5afef-932c-4f5d-8595-afd9a872a08d", + "name": "geoserver-aquacultureatlas.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": "geoserver-ariadne", + "schema_version": 0, + "attributes": { + "description": "Geoserver geoserver-ariadne", + "disable_status_check": false, + "id": "74135b34-1a9c-4c01-8cf0-22450a5660c4/600ee8ca-9ace-4a1c-9c6e-92657ce2dddf", + "name": "geoserver-ariadne.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": "geoserver-esquiline", + "schema_version": 0, + "attributes": { + "description": "Geoserver geoserver-esquiline", + "disable_status_check": false, + "id": "74135b34-1a9c-4c01-8cf0-22450a5660c4/2793fa01-2440-4796-a45e-4e57f1b68f5a", + "name": "geoserver-esquiline.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": "geoserver-geona", + "schema_version": 0, + "attributes": { + "description": "Geoserver geoserver-geona", + "disable_status_check": false, + "id": "74135b34-1a9c-4c01-8cf0-22450a5660c4/42ee9a01-afab-4565-8f7d-51ae6614d783", + "name": "geoserver-geona.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": "geoserver-globalfisheriesatlas", + "schema_version": 0, + "attributes": { + "description": "Geonetwork geoserver-globalfisheriesatlas", + "disable_status_check": false, + "id": "74135b34-1a9c-4c01-8cf0-22450a5660c4/b899990f-95db-4f76-8e01-b5a5f5af6da3", + "name": "geoserver-globalfisheriesatlas.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": "geoserver-grsf", + "schema_version": 0, + "attributes": { + "description": "Geoserver geoserver-grsf", + "disable_status_check": false, + "id": "74135b34-1a9c-4c01-8cf0-22450a5660c4/72a22f79-8d61-4104-997f-a574234461dd", + "name": "geoserver-grsf.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": "geoserver-marineenvironmentalindicators", + "schema_version": 0, + "attributes": { + "description": "Geoserver geoserver-marineenvironmentalindicators", + "disable_status_check": false, + "id": "74135b34-1a9c-4c01-8cf0-22450a5660c4/7a74183f-528d-499d-8e84-025eaed0ba2a", + "name": "geoserver-marineenvironmentalindicators.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": "geoserver-protectedareaimpactmaps", + "schema_version": 0, + "attributes": { + "description": "Geoserver geoserver-protectedareaimpactmaps", + "disable_status_check": false, + "id": "74135b34-1a9c-4c01-8cf0-22450a5660c4/f2abd823-a3de-4ac4-919e-51b07c8db5f5", + "name": "geoserver-protectedareaimpactmaps.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": "geoserver-sdilab", + "schema_version": 0, + "attributes": { + "description": "Geoserver geoserver-sdilab", + "disable_status_check": false, + "id": "74135b34-1a9c-4c01-8cf0-22450a5660c4/6c8ef2af-7d8b-4111-a2ee-04353ed5a9d4", + "name": "geoserver-sdilab.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": "geoserver-tunaatlas", + "schema_version": 0, + "attributes": { + "description": "Geoserver geoserver-tunaatlas", + "disable_status_check": false, + "id": "74135b34-1a9c-4c01-8cf0-22450a5660c4/a524d8ac-ad9e-4c22-9c1b-aaa58bb5f410", + "name": "geoserver-tunaatlas.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": "geoserver-wecafcfirms", + "schema_version": 0, + "attributes": { + "description": "Geoserver geoserver-wecafcfirms", + "disable_status_check": false, + "id": "74135b34-1a9c-4c01-8cf0-22450a5660c4/e12446b9-bdb0-4b53-953c-8cd86c535c6a", + "name": "geoserver-wecafcfirms.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" + ] + } + ] + }, { "module": "module.instance_with_data_volume", "mode": "managed", @@ -394,7 +678,13 @@ "index_key": "geoserver_aquacultureatlas", "schema_version": 0, "attributes": { - "attachment": [], + "attachment": [ + { + "device": "/dev/vdb", + "id": "f53e3efd-a530-4a4a-aac7-39e862418af0", + "instance_id": "4010f6dc-f20b-407c-aa1e-fe87fd9b5230" + } + ], "availability_zone": "nova", "consistency_group_id": null, "description": "", @@ -423,7 +713,13 @@ "index_key": "geoserver_ariadne", "schema_version": 0, "attributes": { - "attachment": [], + "attachment": [ + { + "device": "/dev/vdb", + "id": "82fc05d3-1903-49b7-8479-5dbb5a035a9c", + "instance_id": "61991170-8fa9-4822-a9f3-cff53a91b394" + } + ], "availability_zone": "nova", "consistency_group_id": null, "description": "", @@ -452,7 +748,13 @@ "index_key": "geoserver_esquiline", "schema_version": 0, "attributes": { - "attachment": [], + "attachment": [ + { + "device": "/dev/vdb", + "id": "cee27693-7d90-4645-a7ef-691133934a90", + "instance_id": "0f82ac9b-3dd9-44a8-aa2a-d9fc809fb112" + } + ], "availability_zone": "nova", "consistency_group_id": null, "description": "", @@ -481,7 +783,13 @@ "index_key": "geoserver_geona", "schema_version": 0, "attributes": { - "attachment": [], + "attachment": [ + { + "device": "/dev/vdb", + "id": "4a29e73b-2650-4a2f-ae40-d518d8e707c7", + "instance_id": "6a75e7ec-7f33-4b87-8e01-aee11ce5f3ee" + } + ], "availability_zone": "nova", "consistency_group_id": null, "description": "", @@ -510,7 +818,13 @@ "index_key": "geoserver_globalfisheriesatlas", "schema_version": 0, "attributes": { - "attachment": [], + "attachment": [ + { + "device": "/dev/vdb", + "id": "646e3ee5-4037-450a-9be9-189d811106ae", + "instance_id": "17ed0958-b281-438b-8dfd-5a8fdcedde7d" + } + ], "availability_zone": "nova", "consistency_group_id": null, "description": "", @@ -539,7 +853,13 @@ "index_key": "geoserver_grsf", "schema_version": 0, "attributes": { - "attachment": [], + "attachment": [ + { + "device": "/dev/vdb", + "id": "19a6d750-69cb-4c10-99b3-115223ade1a0", + "instance_id": "d5e2e97c-a43e-4d26-9ea0-d2f2952f9c09" + } + ], "availability_zone": "nova", "consistency_group_id": null, "description": "", @@ -568,7 +888,13 @@ "index_key": "geoserver_marineenvironmentalindicators", "schema_version": 0, "attributes": { - "attachment": [], + "attachment": [ + { + "device": "/dev/vdb", + "id": "2f2e03c1-617a-4636-bd6a-6365c1cad152", + "instance_id": "5615ecc2-9dae-4759-9181-58c068128a62" + } + ], "availability_zone": "nova", "consistency_group_id": null, "description": "", @@ -597,7 +923,13 @@ "index_key": "geoserver_protectedareaimpactmaps", "schema_version": 0, "attributes": { - "attachment": [], + "attachment": [ + { + "device": "/dev/vdb", + "id": "19150f10-0454-446d-b185-e7af3e904b53", + "instance_id": "f39793c5-3e3a-40fb-909e-840a43a001f4" + } + ], "availability_zone": "nova", "consistency_group_id": null, "description": "", @@ -626,7 +958,13 @@ "index_key": "geoserver_sdilab", "schema_version": 0, "attributes": { - "attachment": [], + "attachment": [ + { + "device": "/dev/vdb", + "id": "a9a8535b-6d3f-4c22-89aa-a0a10b385150", + "instance_id": "9ad1420c-f428-4bfc-8db0-36f1c78d8ebb" + } + ], "availability_zone": "nova", "consistency_group_id": null, "description": "", @@ -655,7 +993,13 @@ "index_key": "geoserver_tunaatlas", "schema_version": 0, "attributes": { - "attachment": [], + "attachment": [ + { + "device": "/dev/vdb", + "id": "b7e0989f-2f72-4c5c-9f90-36998a54f4cf", + "instance_id": "788e6da0-be2f-4dfa-b68b-da973f4d2f3e" + } + ], "availability_zone": "nova", "consistency_group_id": null, "description": "", @@ -684,7 +1028,13 @@ "index_key": "geoserver_wecafcfirms", "schema_version": 0, "attributes": { - "attachment": [], + "attachment": [ + { + "device": "/dev/vdb", + "id": "3723e4fb-8e35-458e-930a-318f5ff4bafb", + "instance_id": "237a6d69-2f5b-4c49-8741-2e52fc3a22ec" + } + ], "availability_zone": "nova", "consistency_group_id": null, "description": "", @@ -788,7 +1138,7 @@ "traffic_from_the_main_load_balancers" ], "stop_before_destroy": false, - "tags": null, + "tags": [], "timeouts": null, "updated": "2023-12-14 17:16:20 +0000 UTC", "user_data": "47d4769e61324c305c4b70ed6673de4fad84150d", @@ -871,7 +1221,7 @@ "traffic_from_the_main_load_balancers" ], "stop_before_destroy": false, - "tags": null, + "tags": [], "timeouts": null, "updated": "2023-12-14 17:16:24 +0000 UTC", "user_data": "47d4769e61324c305c4b70ed6673de4fad84150d", @@ -954,7 +1304,7 @@ "traffic_from_the_main_load_balancers" ], "stop_before_destroy": false, - "tags": null, + "tags": [], "timeouts": null, "updated": "2023-12-14 17:16:31 +0000 UTC", "user_data": "47d4769e61324c305c4b70ed6673de4fad84150d", @@ -1037,7 +1387,7 @@ "traffic_from_the_main_load_balancers" ], "stop_before_destroy": false, - "tags": null, + "tags": [], "timeouts": null, "updated": "2023-12-14 17:16:20 +0000 UTC", "user_data": "47d4769e61324c305c4b70ed6673de4fad84150d", @@ -1120,7 +1470,7 @@ "traffic_from_the_main_load_balancers" ], "stop_before_destroy": false, - "tags": null, + "tags": [], "timeouts": null, "updated": "2023-12-14 17:16:31 +0000 UTC", "user_data": "47d4769e61324c305c4b70ed6673de4fad84150d", @@ -1203,7 +1553,7 @@ "traffic_from_the_main_load_balancers" ], "stop_before_destroy": false, - "tags": null, + "tags": [], "timeouts": null, "updated": "2023-12-14 17:16:20 +0000 UTC", "user_data": "47d4769e61324c305c4b70ed6673de4fad84150d", @@ -1286,7 +1636,7 @@ "traffic_from_the_main_load_balancers" ], "stop_before_destroy": false, - "tags": null, + "tags": [], "timeouts": null, "updated": "2023-12-14 17:16:42 +0000 UTC", "user_data": "47d4769e61324c305c4b70ed6673de4fad84150d", @@ -1369,7 +1719,7 @@ "traffic_from_the_main_load_balancers" ], "stop_before_destroy": false, - "tags": null, + "tags": [], "timeouts": null, "updated": "2023-12-14 17:16:42 +0000 UTC", "user_data": "47d4769e61324c305c4b70ed6673de4fad84150d", @@ -1452,7 +1802,7 @@ "traffic_from_the_main_load_balancers" ], "stop_before_destroy": false, - "tags": null, + "tags": [], "timeouts": null, "updated": "2023-12-14 17:17:02 +0000 UTC", "user_data": "47d4769e61324c305c4b70ed6673de4fad84150d", @@ -1535,7 +1885,7 @@ "traffic_from_the_main_load_balancers" ], "stop_before_destroy": false, - "tags": null, + "tags": [], "timeouts": null, "updated": "2023-12-14 17:16:28 +0000 UTC", "user_data": "47d4769e61324c305c4b70ed6673de4fad84150d", @@ -1618,7 +1968,7 @@ "traffic_from_the_main_load_balancers" ], "stop_before_destroy": false, - "tags": null, + "tags": [], "timeouts": null, "updated": "2023-12-14 17:16:21 +0000 UTC", "user_data": "47d4769e61324c305c4b70ed6673de4fad84150d",