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/command/test-fixtures/hcl/vars-in-build-block.pkr.hcl

25 lines
383 B

variable "name" {
type = string
default = "example"
}
variable "description" {
type = string
default = "blah blah blah"
}
source "null" "example" {
communicator = "none"
}
build {
name = var.name
description = var.description
sources = ["source.null.example"]
post-processor "shell-local" {
inline = ["echo 2 > ${build.name}.2.txt"]
}
}