File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
environments/skeleton/{{cookiecutter.environment}}/tofu Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ resource "openstack_networking_port_v2" "control" {
14
14
subnet_id = data. openstack_networking_subnet_v2 . cluster_subnet [each . key ]. id
15
15
}
16
16
17
- port_security_enabled = lookup (each. value , " port_security_enabled " , null )
18
- security_group_ids = lookup (each. value , " port_security_enabled " , true ) ? [for o in data . openstack_networking_secgroup_v2 . nonlogin : o . id ] : [ ]
17
+ no_security_groups = lookup (each. value , " no_security_groups " , false )
18
+ security_group_ids = lookup (each. value , " no_security_groups " , false ) ? [] : [ for o in data . openstack_networking_secgroup_v2 . nonlogin : o . id ]
19
19
20
20
binding {
21
21
vnic_type = lookup (var. vnic_types , each. key , " normal" )
Original file line number Diff line number Diff line change @@ -44,9 +44,9 @@ resource "openstack_networking_port_v2" "compute" {
44
44
fixed_ip {
45
45
subnet_id = data. openstack_networking_subnet_v2 . subnet [each . value . network ]. id
46
46
}
47
-
48
- port_security_enabled = lookup (each. value , " port_security_enabled " , null )
49
- security_group_ids = lookup (each. value , " port_security_enabled " , true ) ? var . security_group_ids : []
47
+
48
+ no_security_groups = lookup (each. value , " no_security_groups " , false )
49
+ security_group_ids = lookup (each. value , " no_security_groups " , false ) ? [] : var . security_group_ids
50
50
51
51
binding {
52
52
vnic_type = lookup (var. vnic_types , each. value . network , " normal" )
You can’t perform that action at this time.
0 commit comments