Add DNS record for Emodnet VM
This commit is contained in:
parent
954c2e2229
commit
7987219fa5
|
@ -97,6 +97,15 @@ resource "openstack_compute_floatingip_associate_v2" "emodnet_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" {
|
||||
name = "emodnet-external-volume"
|
||||
size = 500
|
||||
|
|
Loading…
Reference in New Issue