github.com/hashicorp/packer@v1.14.3/datasource/http/test-fixtures/basic.pkr.hcl (about) 1 source "null" "example" { 2 communicator = "none" 3 } 4 5 data "http" "basic" { 6 url = "https://www.google.com" 7 } 8 9 locals { 10 url = "${data.http.basic.url}" 11 body = "${data.http.basic.body}" != "" 12 } 13 14 build { 15 name = "mybuild" 16 sources = [ 17 "source.null.example" 18 ] 19 provisioner "shell-local" { 20 inline = [ 21 "echo url is ${local.url}", 22 "echo body is ${local.body}" 23 ] 24 } 25 }