mirror of
https://github.com/hashicorp/packer.git
synced 2026-04-29 18:20:05 -04:00
* Add variable interpolation support to hcp_packer_registry block * Add tests for variable interpolation in hcp_packer_registry block * Add variable interpolation support to the build block (#11425) * Add simple test to build command
21 lines
320 B
HCL
21 lines
320 B
HCL
variable "name" {
|
|
type = string
|
|
default = "build-name"
|
|
}
|
|
|
|
local "description" {
|
|
expression = "This is the description for ${var.name}."
|
|
}
|
|
|
|
build {
|
|
name = var.name
|
|
description = local.description
|
|
|
|
sources = [
|
|
"source.virtualbox-iso.ubuntu-1204"
|
|
]
|
|
}
|
|
|
|
source "virtualbox-iso" "ubuntu-1204" {
|
|
}
|
|
|