From c9c4fa7d9620d4430444366ba4deb05ddda08c7a Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sat, 3 Oct 2026 09:07:49 -0700 Subject: Run packer fmt on packer hcl files --- hcloud-snapshot/main.pkr.hcl | 2 +- hcloud-snapshot/snapshot.pkr.hcl | 22 +++++++++++----------- hcloud-snapshot/variables.pkr.hcl | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) (limited to 'hcloud-snapshot') diff --git a/hcloud-snapshot/main.pkr.hcl b/hcloud-snapshot/main.pkr.hcl index 920eeae..a78dd73 100644 --- a/hcloud-snapshot/main.pkr.hcl +++ b/hcloud-snapshot/main.pkr.hcl @@ -1,6 +1,6 @@ packer { required_plugins { - hcloud = { source = "github.com/hetznercloud/hcloud", version = "~> 1" } + hcloud = { source = "github.com/hetznercloud/hcloud", version = "~> 1" } } } diff --git a/hcloud-snapshot/snapshot.pkr.hcl b/hcloud-snapshot/snapshot.pkr.hcl index ba6376f..dd19f27 100644 --- a/hcloud-snapshot/snapshot.pkr.hcl +++ b/hcloud-snapshot/snapshot.pkr.hcl @@ -1,15 +1,15 @@ source "hcloud" "openbsd" { - token = var.hcloud_token - rescue = "linux64" - image = "debian-13" - server_type = "cx23" - location = "nbg1" - ssh_username = "root" - ssh_keys = [var.ssh_key] - snapshot_name = "openbsd-${var.version}-${var.arch}" + token = var.hcloud_token + rescue = "linux64" + image = "debian-13" + server_type = "cx23" + location = "nbg1" + ssh_username = "root" + ssh_keys = [var.ssh_key] + snapshot_name = "openbsd-${var.version}-${var.arch}" snapshot_labels = { - "os": "openbsd", - "version": var.version, - "arch": var.arch, + "os" : "openbsd", + "version" : var.version, + "arch" : var.arch, } } diff --git a/hcloud-snapshot/variables.pkr.hcl b/hcloud-snapshot/variables.pkr.hcl index a02e433..5aa8be1 100644 --- a/hcloud-snapshot/variables.pkr.hcl +++ b/hcloud-snapshot/variables.pkr.hcl @@ -19,7 +19,7 @@ variable "version" { } variable "arch" { - type = string + type = string validation { condition = contains(["amd64", "arm64"], var.arch) error_message = "The arch must be one of: amd64, arm64." -- cgit v1.2.3