aboutsummaryrefslogtreecommitdiffstats
path: root/openbsd-image/variables.pkr.hcl
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2026-09-23 15:11:58 -0700
committerEugene Triguba <hello@eugenetriguba.com>2026-10-11 18:33:35 -0700
commit75892026b595f8c5b6b59cf8cafee8d2a54e10f7 (patch)
treee1735764a333da2dd572b3f20aec55bc27690cb0 /openbsd-image/variables.pkr.hcl
parentAdd labels to hcloud snapshot (diff)
downloadsite-server-images-75892026b595f8c5b6b59cf8cafee8d2a54e10f7.zip
Fix SSH key and use multiple cpus during the build
The SSH key variable being referenced was incorrect, so we had a syntax error. Furthermore, we need to use multiple CPUs during the image build since if we only use 1 CPU, OpenBSD will use the GENERIC kernel rather than the GENERIC.MP kernel, which means we'll only be able to use 1 CPU.
Diffstat (limited to 'openbsd-image/variables.pkr.hcl')
-rw-r--r--openbsd-image/variables.pkr.hcl8
1 files changed, 7 insertions, 1 deletions
diff --git a/openbsd-image/variables.pkr.hcl b/openbsd-image/variables.pkr.hcl
index 4bc0860..e8340a9 100644
--- a/openbsd-image/variables.pkr.hcl
+++ b/openbsd-image/variables.pkr.hcl
@@ -21,7 +21,7 @@ variable "admin_user" {
default = "admin"
}
-variable "ssh_public_key" {
+variable "ssh_key" {
type = string
description = "Public SSH key to associate with the admin user for login"
}
@@ -42,6 +42,12 @@ variable "hostname" {
default = "openbsd-vm"
}
+variable "cpus" {
+ type = number
+ description = "CPUs to allocate to the VM while building the ISO"
+ default = 2
+}
+
variable "memory" {
type = number
description = "Memory to allocate to the VM in MB while building the ISO"