From 396a1e7e75d8c0fb4f1b95696e8b7a91edee5bd0 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Tue, 22 Sep 2026 17:17:08 -0700 Subject: Add labels to hcloud snapshot --- hcloud-snapshot/snapshot.pkr.hcl | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/hcloud-snapshot/snapshot.pkr.hcl b/hcloud-snapshot/snapshot.pkr.hcl index d8834c8..cabf65d 100644 --- a/hcloud-snapshot/snapshot.pkr.hcl +++ b/hcloud-snapshot/snapshot.pkr.hcl @@ -1,10 +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}-golden" + 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}-golden" + snapshot_labels = { + "os": "openbsd", + "version": var.version, + "arch": var.arch, + } } -- cgit v1.2.3