github.com/hashicorp/packer@v1.14.3/command/test-fixtures/var-arg/var-arg-tests/fruit_builder.pkr.hcl (about) 1 2 variable "fruit" { 3 type = string 4 } 5 6 locals { 7 fruit = var.fruit 8 } 9 10 source "null" "builder" { 11 communicator = "none" 12 } 13 14 build { 15 sources = [ 16 "source.null.builder", 17 ] 18 19 provisioner "shell-local" { 20 inline = ["echo ${local.fruit} > ${local.fruit}.txt"] 21 } 22 }