File tree Expand file tree Collapse file tree 6 files changed +30
-0
lines changed Expand file tree Collapse file tree 6 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -60,4 +60,7 @@ module "compute" {
60
60
" gateway_ip" ,
61
61
" nodename_template" ,
62
62
]
63
+
64
+ config_drive = var. config_drive
65
+
63
66
}
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 @@ -64,4 +64,7 @@ module "login" {
64
64
" gateway_ip" ,
65
65
" nodename_template" ,
66
66
]
67
+
68
+ config_drive = var. config_drive
69
+
67
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,12 @@ 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
+ description = <<- EOT
198
+ Whether to enable Nova config drives on all nodes, which will mount a drive containing
199
+ information that would usually be available through the metadata service.
200
+ EOT
201
+ type = bool
202
+ default = false
203
+ }
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 mount a drive containing
320
+ information that would usually be available through the metadata service.
321
+ EOT
322
+ type = bool
323
+ default = false
324
+ }
You can’t perform that action at this time.
0 commit comments