packer-cn/command/test-fixtures/hcl/provisioner-override.pkr.hcl

19 lines
340 B
HCL
Raw Normal View History

2020-08-14 05:22:51 -04:00
source "null" "example1" {
communicator = "none"
}
source "null" "example2" {
communicator = "none"
}
build {
sources = ["source.null.example1", "source.null.example2"]
provisioner "shell-local" {
inline = ["echo not overridden"]
override = {
example1 = {
inline = ["echo yes overridden"]
}
}
}
}