Files
vms/sources/inputs.pkr.hcl
T

71 lines
1.1 KiB
HCL
Raw Normal View History

2022-05-25 01:40:52 -05:00
variable "iso" {
type = map(string)
description = "A map containing the URL and checksum for the ISO file"
}
variable "distro" {
type = string
default = "unknown"
}
variable "arch" {
type = string
default = "x86_64"
}
variable "version" {
type = string
description = "The distro version being specified"
}
variable "boot_wait" {
type = string
2022-06-01 10:56:04 -05:00
default = "15s"
2022-05-25 01:40:52 -05:00
description = "Length of time to wait before entering boot commands"
}
variable "boot_command" {
type = list(string)
default = []
}
variable "shutdown_command" {
type = string
default = "sudo systemctl poweroff"
}
variable "headless" {
type = bool
default = true
}
2022-05-27 08:40:09 -05:00
variable "vagrant_cloud_token" {
type = string
default = env("VAGRANT_CLOUD_TOKEN")
}
2022-06-08 02:27:48 -05:00
variable "build" {
type = string
default = "0.1"
}
2022-05-25 01:40:52 -05:00
locals {
name = "${var.distro}-${var.version}-${var.arch}"
description = templatefile("../README.box.md", {
distro = var.distro
arch = var.arch
version = var.version
2022-06-08 02:27:48 -05:00
build = var.build
2022-05-25 01:40:52 -05:00
})
2022-06-04 13:23:22 -05:00
cpus = 2
2022-06-05 15:51:36 -05:00
memory = 4096
2022-06-04 13:23:22 -05:00
disk_size = 10
ssh = {
username = "vagrant"
password = "vagrant"
handshake_attempts = 1000
timeout = "5h50m"
}
2022-05-25 01:40:52 -05:00
}