You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
packer/datasource/hcp-packer-iteration/test-fixtures/template.pkr.hcl

34 lines
683 B

source "null" "example" {
communicator = "none"
}
data "hcp-packer-iteration" "hardened-source" {
bucket_name = "simple-deprecated"
channel = "latest"
}
data "hcp-packer-image" "file" {
bucket_name = "simple-deprecated"
iteration_id = "${data.hcp-packer-iteration.hardened-source.id}"
cloud_provider = "packer.file"
region = %q
}
locals {
foo = "${data.hcp-packer-iteration.hardened-source.id}"
bar = "${data.hcp-packer-image.file.id}"
}
build {
name = "mybuild"
sources = [
"source.null.example"
]
provisioner "shell-local" {
inline = [
"echo data is ${local.foo}",
"echo data is ${local.bar}"
]
}
}