dogtag-IaC/dtca.tf
2024-04-29 15:06:42 +02:00

29 lines
1,012 B
HCL

resource "openstack_networking_port_v2" "dtcaport" {
name = "${var.caname}-sunet-se-port"
network_id = data.openstack_networking_network_v2.public.id
# A list of security group ID
security_group_ids = [
data.openstack_networking_secgroup_v2.sshfromjumphosts.id,
data.openstack_networking_secgroup_v2.allegress.id
]
admin_state_up = "true"
lifecycle {
prevent_destroy = true
}
}
resource "openstack_networking_port_v2" "dtcadbport" {
name = "${var.cadbname}-sunet-se-port"
network_id = data.openstack_networking_network_v2.public.id
# A list of security group ID
security_group_ids = [
data.openstack_networking_secgroup_v2.sshfromjumphosts.id,
data.openstack_networking_secgroup_v2.allegress.id
]
admin_state_up = "true"
lifecycle {
prevent_destroy = true
}
}