Add a CNAME to the prod socialservice.
This commit is contained in:
parent
5493908641
commit
1951f4fdf3
|
@ -54,3 +54,26 @@ module "instance_without_data_volume" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
locals {
|
||||||
|
cname_target = "main-lb.${data.terraform_remote_state.privnet_dns_router.outputs.dns_zone.zone_name}"
|
||||||
|
}
|
||||||
|
|
||||||
|
#
|
||||||
|
# Add DNS record/s
|
||||||
|
#
|
||||||
|
module "dns_records_create" {
|
||||||
|
source = "../../modules/dns_resources"
|
||||||
|
|
||||||
|
dns_resources_map = {
|
||||||
|
socialservice_prod = {
|
||||||
|
zone_id = data.terraform_remote_state.privnet_dns_router.outputs.dns_zone_id
|
||||||
|
name = join(".", ["socialnetworking", data.terraform_remote_state.privnet_dns_router.outputs.dns_zone.zone_name])
|
||||||
|
description = "Social Service public endpoint. For testing purposes"
|
||||||
|
ttl = 8600
|
||||||
|
type = "CNAME"
|
||||||
|
records = [local.cname_target]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"version": 4,
|
"version": 4,
|
||||||
"terraform_version": "1.6.6",
|
"terraform_version": "1.6.6",
|
||||||
"serial": 4,
|
"serial": 9,
|
||||||
"lineage": "c019bdfb-6443-074d-dcde-d33ae7453cc9",
|
"lineage": "c019bdfb-6443-074d-dcde-d33ae7453cc9",
|
||||||
"outputs": {},
|
"outputs": {},
|
||||||
"resources": [
|
"resources": [
|
||||||
|
@ -404,7 +404,10 @@
|
||||||
"schema_version": 0,
|
"schema_version": 0,
|
||||||
"attributes": {
|
"attributes": {
|
||||||
"id": "e90c0bed-7b13-41b7-b9be-b4ab61ca3318",
|
"id": "e90c0bed-7b13-41b7-b9be-b4ab61ca3318",
|
||||||
"members": [],
|
"members": [
|
||||||
|
"a19b4f16-318b-4526-9fc3-85c36f9566da",
|
||||||
|
"4e155fcc-2e76-45f7-80d3-d6972487278f"
|
||||||
|
],
|
||||||
"name": "social-service",
|
"name": "social-service",
|
||||||
"policies": [
|
"policies": [
|
||||||
"anti-affinity"
|
"anti-affinity"
|
||||||
|
@ -422,6 +425,40 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"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": "socialservice_prod",
|
||||||
|
"schema_version": 0,
|
||||||
|
"attributes": {
|
||||||
|
"description": "Social Service public endpoint. For testing purposes",
|
||||||
|
"disable_status_check": false,
|
||||||
|
"id": "74135b34-1a9c-4c01-8cf0-22450a5660c4/0575ca2f-088f-491b-91c8-c8f25346b270",
|
||||||
|
"name": "socialnetworking.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_without_data_volume",
|
"module": "module.instance_without_data_volume",
|
||||||
"mode": "managed",
|
"mode": "managed",
|
||||||
|
@ -495,7 +532,7 @@
|
||||||
"region": "isti_area_pi_1",
|
"region": "isti_area_pi_1",
|
||||||
"scheduler_hints": [
|
"scheduler_hints": [
|
||||||
{
|
{
|
||||||
"additional_properties": null,
|
"additional_properties": {},
|
||||||
"build_near_host_ip": "",
|
"build_near_host_ip": "",
|
||||||
"different_cell": [],
|
"different_cell": [],
|
||||||
"different_host": [],
|
"different_host": [],
|
||||||
|
@ -511,7 +548,7 @@
|
||||||
"traffic_from_the_main_load_balancers"
|
"traffic_from_the_main_load_balancers"
|
||||||
],
|
],
|
||||||
"stop_before_destroy": false,
|
"stop_before_destroy": false,
|
||||||
"tags": null,
|
"tags": [],
|
||||||
"timeouts": null,
|
"timeouts": null,
|
||||||
"updated": "2024-03-12 10:59:44 +0000 UTC",
|
"updated": "2024-03-12 10:59:44 +0000 UTC",
|
||||||
"user_data": "47d4769e61324c305c4b70ed6673de4fad84150d",
|
"user_data": "47d4769e61324c305c4b70ed6673de4fad84150d",
|
||||||
|
@ -591,7 +628,7 @@
|
||||||
"region": "isti_area_pi_1",
|
"region": "isti_area_pi_1",
|
||||||
"scheduler_hints": [
|
"scheduler_hints": [
|
||||||
{
|
{
|
||||||
"additional_properties": null,
|
"additional_properties": {},
|
||||||
"build_near_host_ip": "",
|
"build_near_host_ip": "",
|
||||||
"different_cell": [],
|
"different_cell": [],
|
||||||
"different_host": [],
|
"different_host": [],
|
||||||
|
@ -607,7 +644,7 @@
|
||||||
"traffic_from_the_main_load_balancers"
|
"traffic_from_the_main_load_balancers"
|
||||||
],
|
],
|
||||||
"stop_before_destroy": false,
|
"stop_before_destroy": false,
|
||||||
"tags": null,
|
"tags": [],
|
||||||
"timeouts": null,
|
"timeouts": null,
|
||||||
"updated": "2024-03-12 10:59:40 +0000 UTC",
|
"updated": "2024-03-12 10:59:40 +0000 UTC",
|
||||||
"user_data": "47d4769e61324c305c4b70ed6673de4fad84150d",
|
"user_data": "47d4769e61324c305c4b70ed6673de4fad84150d",
|
||||||
|
|
Loading…
Reference in New Issue