Skip to content
Snippets Groups Projects
Commit d4ccb9f6 authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Merge branch 'feat-build-qcow2' into 'main'

Feature resulting image format

Closes #61

See merge request rc/packer-openstack-hpc-image!39
parents 9e295a1e 40e57796
No related branches found
No related tags found
1 merge request!39Feature resulting image format
Pipeline #7699 passed with stages
in 25 minutes and 37 seconds
...@@ -9,9 +9,12 @@ source "openstack" "image" { ...@@ -9,9 +9,12 @@ source "openstack" "image" {
image_members = var.image_membership image_members = var.image_membership
image_auto_accept_members = var.auto_accept_members image_auto_accept_members = var.auto_accept_members
image_tags = var.image_tags image_tags = var.image_tags
image_disk_format = var.image_format
volume_size = 10
flavor = var.flavor flavor = var.flavor
instance_name = var.build_instance_name instance_name = var.build_instance_name
use_blockstorage_volume = true
floating_ip_network = var.floating_ip_network floating_ip_network = var.floating_ip_network
networks = var.networks networks = var.networks
security_groups = var.security_groups security_groups = var.security_groups
......
...@@ -9,6 +9,12 @@ variable "image_name" { ...@@ -9,6 +9,12 @@ variable "image_name" {
description = "Name of the image in openstack" description = "Name of the image in openstack"
} }
variable "image_format" {
type = string
default = "qcow2"
description = "The format of the resulting image"
}
variable "image_date_suffix" { variable "image_date_suffix" {
type = bool type = bool
default = false default = false
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment