github.com/hashicorp/packer@v1.14.3/command/test-fixtures/validate/datasource.pkr.hcl (about) 1 packer { 2 required_version = ">= v1.0.0" 3 } 4 5 data "mock" "content" { 6 foo = "content" 7 } 8 9 source "file" "chocolate" { 10 target = "chocolate.txt" 11 content = data.mock.content.foo 12 } 13 14 build { 15 sources = ["source.file.chocolate"] 16 }