Add DNS record for Emodnet VM

This commit is contained in:
Antonio Calanducci 2024-09-23 10:35:20 +02:00
parent 954c2e2229
commit 7987219fa5
1 changed files with 9 additions and 0 deletions

View File

@ -97,6 +97,15 @@ resource "openstack_compute_floatingip_associate_v2" "emodnet_ip" {
depends_on = [openstack_networking_floatingip_v2.emodnet_floating_ip] depends_on = [openstack_networking_floatingip_v2.emodnet_floating_ip]
} }
# DNS record for the floating IP
resource "openstack_dns_recordset_v2" "emodnet_dns_record" {
zone_id = data.terraform_remote_state.privnet_dns_router.outputs.dns_zone_id
name = "emodnet.cloud.d4science.org."
type = "A"
ttl = 300
records = [openstack_networking_floatingip_v2.emodnet_floating_ip.address]
}
resource "openstack_blockstorage_volume_v2" "emodnet_external_volume" { resource "openstack_blockstorage_volume_v2" "emodnet_external_volume" {
name = "emodnet-external-volume" name = "emodnet-external-volume"
size = 500 size = 500