@@ -118,24 +118,24 @@ variable "manifest_output_path" {
118
118
default = " packer-manifest.json"
119
119
}
120
120
121
- variable "use_blockstorage_volume" {
122
- type = bool
123
- default = false
124
- }
125
-
126
121
variable "volume_type" {
127
122
type = string
128
123
default = null
129
124
}
130
125
131
126
variable "volume_size" {
132
- type = number
133
- default = null # When not specified use the size of the builder instance root disk
127
+ type = map (number )
128
+ default = {
129
+ # fat image builds, GB:
130
+ openhpc = 15
131
+ openhpc-ofed = 15
132
+ openhpc-cuda = 25
133
+ }
134
134
}
135
135
136
136
variable "image_disk_format" {
137
137
type = string
138
- default = null # When not specified use the image default
138
+ default = " qcow2 "
139
139
}
140
140
141
141
variable "metadata" {
@@ -157,13 +157,13 @@ variable "groups" {
157
157
source "openstack" "openhpc" {
158
158
# Build VM:
159
159
flavor = var. flavor
160
- use_blockstorage_volume = var . use_blockstorage_volume
160
+ use_blockstorage_volume = true
161
161
volume_type = var. volume_type
162
+ volume_size = var. volume_size
162
163
metadata = var. metadata
163
164
networks = var. networks
164
165
floating_ip_network = var. floating_ip_network
165
166
security_groups = var. security_groups
166
- volume_size = var. volume_size
167
167
168
168
# Input image:
169
169
source_image = " ${ var . source_image [var . os_version ]} "
@@ -179,7 +179,7 @@ source "openstack" "openhpc" {
179
179
ssh_bastion_private_key_file = var. ssh_bastion_private_key_file
180
180
181
181
# Output image:
182
- image_disk_format = var . image_disk_format
182
+ image_disk_format = " qcow2 "
183
183
image_visibility = var. image_visibility
184
184
image_name = " ${ source . name } -${ var . os_version } -${ local . timestamp } -${ substr (local. git_commit , 0 , 8 )} "
185
185
}
0 commit comments