aboutsummaryrefslogtreecommitdiffstats
path: root/openlab/modules/openstack/securitygroup/main.tf
blob: af7cbb4ac1b3450291c0668c14d2bd6c67c716da (plain)
1
2
3
4
5
6
7
8
9
10
resource "openstack_networking_secgroup_v2" "securitygroup" {
  name        = "${var.cluster_name}-securitygroup"
  description = "RKE security group"
}

resource "openstack_networking_secgroup_rule_v2" "securitygroup_rule" {
  direction         = "ingress"
  ethertype         = "IPv4"
  security_group_id = openstack_networking_secgroup_v2.securitygroup.id
}