Add template for Windows Server 2022
This commit is contained in:
116
ws2022/variables.pkr.hcl
Normal file
116
ws2022/variables.pkr.hcl
Normal file
@@ -0,0 +1,116 @@
|
||||
variable "proxmox_url" {
|
||||
type = string
|
||||
description = "Proxmox API URL (e.g. https://pve.example.com:8006/api2/json)"
|
||||
}
|
||||
|
||||
variable "proxmox_token_id" {
|
||||
type = string
|
||||
sensitive = true
|
||||
description = "Proxmox API token ID (e.g. user@pam!packer)"
|
||||
}
|
||||
|
||||
variable "proxmox_token_secret" {
|
||||
type = string
|
||||
sensitive = true
|
||||
description = "Proxmox API token secret"
|
||||
}
|
||||
|
||||
variable "proxmox_node" {
|
||||
type = string
|
||||
description = "Proxmox node name to build on"
|
||||
}
|
||||
|
||||
variable "proxmox_skip_tls" {
|
||||
type = bool
|
||||
default = true
|
||||
}
|
||||
|
||||
variable "vm_name" {
|
||||
type = string
|
||||
default = "ws2022dc-template"
|
||||
}
|
||||
|
||||
variable "vm_id" {
|
||||
type = number
|
||||
default = 1002
|
||||
}
|
||||
|
||||
variable "vm_memory" {
|
||||
type = number
|
||||
default = 4096
|
||||
}
|
||||
|
||||
variable "vm_cores" {
|
||||
type = number
|
||||
default = 2
|
||||
}
|
||||
|
||||
variable "disk_size" {
|
||||
type = string
|
||||
default = "60G"
|
||||
}
|
||||
|
||||
variable "network_bridge" {
|
||||
type = string
|
||||
default = "vmbr0"
|
||||
}
|
||||
|
||||
variable "storage_pool" {
|
||||
type = string
|
||||
default = "local-lvm"
|
||||
description = "Proxmox storage pool for VM disks and EFI"
|
||||
}
|
||||
|
||||
variable "iso_storage_pool" {
|
||||
type = string
|
||||
default = "local"
|
||||
description = "Proxmox storage pool where ISOs live and generated ISOs are placed"
|
||||
}
|
||||
|
||||
variable "iso_file" {
|
||||
type = string
|
||||
description = "Path to Windows Server 2022 ISO in Proxmox (e.g. local:iso/WindowsServer2022.iso)"
|
||||
default = "local-btrfs:iso/en-us_windows_server_2022_updated_july_2023_x64_dvd_541692c3.iso"
|
||||
}
|
||||
|
||||
variable "virtio_iso" {
|
||||
type = string
|
||||
default = "local-btrfs:iso/virtio-win-0.1.285.iso"
|
||||
description = "Path to VirtIO drivers ISO in Proxmox"
|
||||
}
|
||||
|
||||
variable "virtio_drive_letter" {
|
||||
type = string
|
||||
default = "E"
|
||||
description = "Drive letter where the VirtIO ISO is mounted inside Windows"
|
||||
}
|
||||
|
||||
variable "admin_password" {
|
||||
type = string
|
||||
sensitive = true
|
||||
description = "Administrator password used during build (will be cleared by sysprep)"
|
||||
}
|
||||
|
||||
variable "image_index" {
|
||||
type = string
|
||||
default = "4"
|
||||
description = "Windows image index from eval ISO: 1=Std Core, 2=Std Desktop, 3=DC Core, 4=DC Desktop (verify with dism /Get-ImageInfo)"
|
||||
}
|
||||
|
||||
variable "product_key" {
|
||||
type = string
|
||||
default = "WX4NM-KYWYW-QJJR4-XV3QB-6VM33"
|
||||
description = "KMS GVLK for Windows Server 2022 Datacenter"
|
||||
}
|
||||
|
||||
variable "locale" {
|
||||
type = string
|
||||
default = "en-US"
|
||||
description = "Windows locale for UI, input, system (e.g. en-US, hr-HR)"
|
||||
}
|
||||
|
||||
variable "timezone" {
|
||||
type = string
|
||||
default = "Central European Standard Time"
|
||||
description = "Windows timezone name"
|
||||
}
|
||||
Reference in New Issue
Block a user