aboutsummaryrefslogtreecommitdiffstats
path: root/hcloud-snapshot
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2026-09-22 17:17:08 -0700
committerEugene Triguba <hello@eugenetriguba.com>2026-10-11 18:33:35 -0700
commit396a1e7e75d8c0fb4f1b95696e8b7a91edee5bd0 (patch)
treeacf7cace4ec751c369b5304f4f0eab23b98b88e5 /hcloud-snapshot
parentAdd support for hcloud openbsd image snapshot (diff)
downloadsite-server-images-396a1e7e75d8c0fb4f1b95696e8b7a91edee5bd0.zip
Add labels to hcloud snapshot
Diffstat (limited to 'hcloud-snapshot')
-rw-r--r--hcloud-snapshot/snapshot.pkr.hcl21
1 files 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,
+ }
}