mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-20 15:01:40 -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
22 lines
320 B
HCL
22 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" {
|
|
}
|
|
|