aboutsummaryrefslogtreecommitdiffstats
path: root/openbsd-image/variables.pkr.hcl
diff options
context:
space:
mode:
Diffstat (limited to 'openbsd-image/variables.pkr.hcl')
-rw-r--r--openbsd-image/variables.pkr.hcl10
1 files changed, 10 insertions, 0 deletions
diff --git a/openbsd-image/variables.pkr.hcl b/openbsd-image/variables.pkr.hcl
index 24fdbd1..6cd1c3a 100644
--- a/openbsd-image/variables.pkr.hcl
+++ b/openbsd-image/variables.pkr.hcl
@@ -60,6 +60,16 @@ variable "disk_size" {
default = 16
}
+variable "disk_format" {
+ type = string
+ description = "Format of the disk for the VM image"
+ default = "qcow2"
+ validation {
+ condition = contains(["raw", "qcow2"], var.disk_format)
+ error_message = "The arch must be one of: raw, qcow2."
+ }
+}
+
variable "disklabel_template" {
type = string
description = "Specify a custom disklabel template. If empty (default), we'll use OpenBSD's default automatic layout."