forked from msvsphere/cloud-images
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
108 lines
2.5 KiB
108 lines
2.5 KiB
/**
|
|
* MSVSphere Packer template variables.
|
|
*/
|
|
|
|
variable "os_version_9" {
|
|
description = "The target MSVSphere 9 version"
|
|
type = string
|
|
default = "9.2"
|
|
}
|
|
|
|
// TODO: switch to the boot ISO on production
|
|
variable "iso_url_9_x86_64" {
|
|
description = "MSVSphere 9 x86_64 installation ISO URL"
|
|
type = string
|
|
default = "https://rsync.inferitos.ru/msvsphere/9.2/isos/x86_64/MSVSphere-9.2-alpha-x86_64-minimal.iso"
|
|
}
|
|
|
|
variable "iso_checksum_9_x86_64" {
|
|
description = "MSVSphere 9 x86_64 installation ISO checksum"
|
|
type = string
|
|
default = "file:https://rsync.inferitos.ru/msvsphere/9.2/isos/x86_64/CHECKSUM"
|
|
}
|
|
|
|
variable "headless" {
|
|
description = "Start the VM without a GUI console if true"
|
|
type = bool
|
|
default = true
|
|
}
|
|
|
|
variable "cpus" {
|
|
description = "The number of CPUs for a VM"
|
|
type = number
|
|
default = 2
|
|
}
|
|
|
|
variable "memory" {
|
|
description = "The amount of RAM in megabytes"
|
|
type = number
|
|
default = 2048
|
|
}
|
|
|
|
variable "boot_wait" {
|
|
description = "Time to wait before interacting with an OS bootloader menu"
|
|
type = string
|
|
default = "10s"
|
|
}
|
|
|
|
variable "ssh_timeout" {
|
|
description = "The SSH connection timeout"
|
|
type = string
|
|
default = "1800s"
|
|
}
|
|
|
|
variable "post_cpus" {
|
|
description = "The number of CPUs to set for the VM after build"
|
|
type = number
|
|
default = 1
|
|
}
|
|
|
|
variable "post_memory" {
|
|
description = "The amount of RAM to set for the VM after build"
|
|
type = number
|
|
default = 1024
|
|
}
|
|
|
|
variable "http_directory" {
|
|
description = "The kickstart files directory path"
|
|
type = string
|
|
default = "http"
|
|
}
|
|
|
|
/**
|
|
* Vagrant-specific settings.
|
|
*/
|
|
variable "vagrant_disk_size" {
|
|
description = "The VM disk size in megabytes"
|
|
type = number
|
|
default = 20000
|
|
}
|
|
|
|
variable "vagrant_boot_cmd_9_x86_64_bios" {
|
|
description = "The boot command for x86_64 VMs in a BIOS mode"
|
|
type = list(string)
|
|
default = [
|
|
"<tab> inst.text inst.gpt ",
|
|
"inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/msvsphere-9-vagrant.x86_64.ks",
|
|
"<enter><wait>"
|
|
]
|
|
}
|
|
|
|
variable "vagrant_ssh_username" {
|
|
description = "A login to use for SSH authentication"
|
|
type = string
|
|
default = "vagrant"
|
|
}
|
|
|
|
variable "vagrant_ssh_password" {
|
|
description = "A password to use for SSH authentication"
|
|
type = string
|
|
default = "vagrant"
|
|
}
|
|
|
|
variable "vagrant_shutdown_command" {
|
|
description = "The VM shutdown command"
|
|
type = string
|
|
default = "echo vagrant | sudo -S /sbin/shutdown -hP now"
|
|
}
|