vms/recipes/debian/locals.pkr.hcl

20 lines
718 B
HCL
Raw Normal View History

2023-09-28 16:34:53 +02:00
# "timestamp" template function replacement
locals {
locations = {
recipes = "${path.cwd}/recipes/${var.name}"
templates = "${path.cwd}/recipes/${var.name}/templates"
provisionning = "${path.cwd}/recipes/${var.name}/provisionning"
post-processors = "${path.cwd}/recipes/${var.name}/post-processor"
tools = "${path.cwd}/tools"
}
dirs = local.locations
timestamp = regex_replace(timestamp(), "[- TZ:]", "")
output_name = "${var.name}"
2023-10-20 16:19:23 +02:00
source_iso = "${var.source_url}/${var.arch}/iso-cd/debian-${var.version}-${var.arch}-netinst.iso"
iso_cd_checksum = "file:${var.source_url}/${var.arch}/iso-cd/SHA256SUMS"
2023-09-28 16:34:53 +02:00
ssh_user = "root"
2023-10-20 16:19:23 +02:00
ssh_password = "toor"
2023-09-28 16:34:53 +02:00
disk_size = 8000
memory = 512
}