12 lines
570 B
Terraform
12 lines
570 B
Terraform
|
|
||
|
resource "openstack_networking_port_v2" "kubeport" {
|
||
|
name = "kube${count.index + 1}-matrix-test-sunet-se-port"
|
||
|
# We create as many ports as there are instances created
|
||
|
count = ${kubesize} # size of cluster
|
||
|
network_id = data.openstack_networking_network_v2.public.id
|
||
|
# A list of security group ID
|
||
|
#security_group_ids = [resource.openstack_networking_secgroup_v2.sshaccess.id, data.openstack_networking_secgroup_v2.defaultsg.id, resource.openstack_networking_secgroup_v2.pgserver.id ]
|
||
|
admin_state_up = "true"
|
||
|
}
|
||
|
|