packer-cn/command/test-fixtures/var-arg/fuit_builder.pkr.hcl

19 lines
257 B
HCL
Raw Normal View History

variable "fruit" {
type = string
}
source "null" "builder" {
communicator = "none"
}
build {
sources = [
"source.null.builder",
]
provisioner "shell-local" {
inline = ["echo ${var.fruit} > ${var.fruit}.txt"]
}
}