mirror of
https://github.com/hashicorp/packer.git
synced 2026-10-05 14:13:24 -04:00
* [COMPLIANCE] Add/Update Copyright Headers * make generate update * make generate --------- Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com> Co-authored-by: sanya <[email protected]> Co-authored-by: Sanya <[email protected]>
44 lines
854 B
HCL
44 lines
854 B
HCL
# Copyright IBM Corp. 2024, 2026
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
|
|
packer {
|
|
required_plugins {
|
|
scaffolding = {
|
|
version = ">=v0.1.0"
|
|
source = "github.com/hashicorp/scaffolding"
|
|
}
|
|
}
|
|
}
|
|
|
|
source "scaffolding-my-builder" "foo-example" {
|
|
mock = local.foo
|
|
}
|
|
|
|
source "scaffolding-my-builder" "bar-example" {
|
|
mock = local.bar
|
|
}
|
|
|
|
build {
|
|
sources = [
|
|
"source.scaffolding-my-builder.foo-example",
|
|
]
|
|
|
|
source "source.scaffolding-my-builder.bar-example" {
|
|
name = "bar"
|
|
}
|
|
|
|
provisioner "scaffolding-my-provisioner" {
|
|
only = ["scaffolding-my-builder.foo-example"]
|
|
mock = "foo: ${local.foo}"
|
|
}
|
|
|
|
provisioner "scaffolding-my-provisioner" {
|
|
only = ["scaffolding-my-builder.bar"]
|
|
mock = "bar: ${local.bar}"
|
|
}
|
|
|
|
post-processor "scaffolding-my-post-processor" {
|
|
mock = "post-processor mock-config"
|
|
}
|
|
}
|