blob: 1e7e4a46db3a483532fdd141c341cc29289aa227 [file] [log] [blame]
source "null" "example" {
communicator = "none"
}
data "http" "basic" {
url = "https://www.packer.io/"
}
locals {
url = "${data.http.basic.url}"
body = "${data.http.basic.body}" != ""
}
build {
name = "mybuild"
sources = [
"source.null.example"
]
provisioner "shell-local" {
inline = [
"echo url is ${local.url}",
"echo body is ${local.body}"
]
}
}