diff options
Diffstat (limited to 'hcloud-snapshot')
| -rw-r--r-- | hcloud-snapshot/main.pkr.hcl | 2 | ||||
| -rw-r--r-- | hcloud-snapshot/snapshot.pkr.hcl | 22 | ||||
| -rw-r--r-- | hcloud-snapshot/variables.pkr.hcl | 2 |
3 files changed, 13 insertions, 13 deletions
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." |