aboutsummaryrefslogtreecommitdiffstats
path: root/hcloud-snapshot/snapshot.pkr.hcl
blob: ba6376f69f4cb611571d4015cb423b4779c1c41d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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}"
  snapshot_labels = {
    "os": "openbsd",
    "version": var.version,
    "arch": var.arch,
  }
}