You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
packer/hcl2template/testdata/hcp_par/variables-for-labels.pkr.hcl

31 lines
466 B

variable "bucket_labels" {
type = map(string)
default = {
"team": "development",
}
}
variable "build_labels" {
type = map(string)
default = {
"packageA": "v3.17.5",
"packageZ": "v0.6",
}
}
build {
hcp_packer_registry {
bucket_name = "bucket-slug"
bucket_labels = var.bucket_labels
build_labels = var.build_labels
}
sources = [
"source.virtualbox-iso.ubuntu-1204",
]
}
source "virtualbox-iso" "ubuntu-1204" {
}