dogtag-IaC/dtca.tf

29 lines
1,012 B
Terraform
Raw Normal View History

2024-04-29 12:49:34 +00:00
resource "openstack_networking_port_v2" "dtcaport" {
2024-04-29 13:06:42 +00:00
name = "${var.caname}-sunet-se-port"
2024-04-29 12:49:34 +00:00
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" {
2024-04-29 13:06:42 +00:00
name = "${var.cadbname}-sunet-se-port"
2024-04-29 12:49:34 +00:00
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
}
}