File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed
environments/skeleton/{{cookiecutter.environment}}/tofu Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ module "additional" {
31
31
match_ironic_node = lookup (each. value , " match_ironic_node" , null )
32
32
availability_zone = lookup (each. value , " availability_zone" , null )
33
33
ip_addresses = lookup (each. value , " ip_addresses" , null )
34
+ security_group_ids = lookup (each. value , " security_group_ids" , [for o in data . openstack_networking_secgroup_v2 . nonlogin : o . id ])
34
35
35
36
# can't be set for additional nodes
36
37
compute_init_enable = []
@@ -40,7 +41,6 @@ module "additional" {
40
41
# not using openstack_compute_instance_v2.control.access_ip_v4 to avoid
41
42
# updates to node metadata on deletion/recreation of the control node:
42
43
control_address = openstack_networking_port_v2. control [var . cluster_networks [0 ]. network ]. all_fixed_ips [0 ]
43
- security_group_ids = [for o in data . openstack_networking_secgroup_v2 . nonlogin : o . id ]
44
44
baremetal_nodes = data. external . baremetal_nodes . result
45
45
46
46
# input dict validation:
@@ -63,5 +63,6 @@ module "additional" {
63
63
" ip_addresses" ,
64
64
" gateway_ip" ,
65
65
" nodename_template" ,
66
+ " security_group_ids" ,
66
67
]
67
68
}
Original file line number Diff line number Diff line change @@ -72,7 +72,8 @@ variable "extra_volumes" {
72
72
}
73
73
74
74
variable "security_group_ids" {
75
- type = list
75
+ type = list (string )
76
+ nullable = false
76
77
}
77
78
78
79
variable "control_address" {
Original file line number Diff line number Diff line change @@ -143,7 +143,12 @@ variable "additional_nodegroups" {
143
143
will not run slurmd.
144
144
145
145
Keys are names of groups.
146
- Values are a mapping as for the "login" variable.
146
+ Values are a mapping as for the "login" variable, with the addition of
147
+ the optional entry:
148
+
149
+ security_group_ids: List of strings giving IDs of security groups
150
+ to apply. If not specified the groups from the
151
+ variable nonlogin_security_groups are applied.
147
152
148
153
Nodes are added to the following inventory groups:
149
154
- $group_name
You can’t perform that action at this time.
0 commit comments