File tree Expand file tree Collapse file tree 7 files changed +24
-0
lines changed Expand file tree Collapse file tree 7 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ module "additional" {
12
12
cluster_domain_suffix = var. cluster_domain_suffix
13
13
key_pair = var. key_pair
14
14
environment_root = var. environment_root
15
+ config_drive = var. config_drive
15
16
16
17
# can be set for group, defaults to top-level value:
17
18
image_id = lookup (each. value , " image_id" , var. cluster_image_id )
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ module "compute" {
12
12
cluster_domain_suffix = var. cluster_domain_suffix
13
13
key_pair = var. key_pair
14
14
environment_root = var. environment_root
15
+ config_drive = var. config_drive
15
16
16
17
# can be set for group, defaults to top-level value:
17
18
image_id = lookup (each. value , " image_id" , var. cluster_image_id )
@@ -60,4 +61,5 @@ module "compute" {
60
61
" gateway_ip" ,
61
62
" nodename_template" ,
62
63
]
64
+
63
65
}
Original file line number Diff line number Diff line change @@ -94,4 +94,6 @@ resource "openstack_compute_instance_v2" "control" {
94
94
%{ endif }
95
95
EOF
96
96
97
+ config_drive = var. config_drive
98
+
97
99
}
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ module "login" {
12
12
cluster_domain_suffix = var. cluster_domain_suffix
13
13
key_pair = var. key_pair
14
14
environment_root = var. environment_root
15
+ config_drive = var. config_drive
15
16
16
17
# can be set for group, defaults to top-level value:
17
18
image_id = lookup (each. value , " image_id" , var. cluster_image_id )
@@ -65,4 +66,5 @@ module "login" {
65
66
" nodename_template" ,
66
67
" security_group_ids"
67
68
]
69
+
68
70
}
Original file line number Diff line number Diff line change @@ -120,6 +120,8 @@ resource "openstack_compute_instance_v2" "compute_fixed_image" {
120
120
121
121
availability_zone = var. match_ironic_node ? " ${ local . baremetal_az } ::${ var . baremetal_nodes [each . key ]} " : var. availability_zone
122
122
123
+ config_drive = var. config_drive
124
+
123
125
lifecycle {
124
126
ignore_changes = [
125
127
image_id ,
@@ -175,6 +177,8 @@ resource "openstack_compute_instance_v2" "compute" {
175
177
176
178
availability_zone = var. match_ironic_node ? " ${ local . baremetal_az } ::${ var . baremetal_nodes [each . key ]} " : var. availability_zone
177
179
180
+ config_drive = var. config_drive
181
+
178
182
}
179
183
180
184
resource "openstack_networking_floatingip_associate_v2" "fip" {
Original file line number Diff line number Diff line change @@ -192,3 +192,7 @@ variable "allowed_keys" {
192
192
type = list
193
193
# don't provide a default here as allowed keys may depend on module use
194
194
}
195
+
196
+ variable "config_drive" {
197
+ type = bool
198
+ }
Original file line number Diff line number Diff line change @@ -313,3 +313,12 @@ variable "cluster_nodename_template" {
313
313
type = string
314
314
default = " $${cluster_name}-$${node}.$${cluster_name}.$${cluster_domain_suffix}"
315
315
}
316
+
317
+ variable "config_drive" {
318
+ description = <<- EOT
319
+ Whether to enable Nova config drives on all nodes, which will attach a drive containing
320
+ information usually provided through the metadata service.
321
+ EOT
322
+ type = bool
323
+ default = null
324
+ }
You can’t perform that action at this time.
0 commit comments