Files
vms/sources/inputs.pkr.hcl
T

97 lines
1.5 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
2023-11-27 21:00:35 -06:00
default = "amd64"
2022-05-25 01:40:52 -05:00
}
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"
}
2023-08-11 20:36:18 -05:00
variable "cd_content" {
2023-08-03 15:46:44 -05:00
type = map(string)
default = {}
2023-08-03 14:44:02 -05:00
}
2023-08-11 20:36:18 -05:00
variable "cd_files" {
type = list(string)
default = []
}
2023-08-03 14:44:02 -05:00
variable "cd_label" {
type = string
default = "cidata"
}
2023-08-03 15:46:44 -05:00
variable "http_files" {
type = map(string)
default = {}
}
2023-08-11 20:36:18 -05:00
variable "http_directory" {
type = string
default = ""
}
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
2023-11-28 10:32:23 -06:00
cpus = 4
memory = 8192
2022-06-04 13:23:22 -05:00
disk_size = 10
ssh = {
username = "vagrant"
password = "vagrant"
handshake_attempts = 1000
2022-06-22 10:00:04 -05:00
timeout = "5h45m"
2023-08-03 14:44:02 -05:00
private_key_file = "vagrant/insecure_key"
2022-06-04 13:23:22 -05:00
}
2022-05-25 01:40:52 -05:00
}