fix: update windows build vars for consistency
This commit is contained in:
@@ -114,19 +114,16 @@ variable "vm_os_name" {
|
|||||||
variable "vm_os_version" {
|
variable "vm_os_version" {
|
||||||
type = string
|
type = string
|
||||||
description = "The guest operating system version. Used for naming."
|
description = "The guest operating system version. Used for naming."
|
||||||
default = "11"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "vm_os_edition_pro" {
|
variable "vm_os_edition_pro" {
|
||||||
type = string
|
type = string
|
||||||
description = "The guest operating system edition. Used for naming."
|
description = "The guest operating system edition. Used for naming."
|
||||||
default = "pro"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "vm_os_edition_ent" {
|
variable "vm_os_edition_ent" {
|
||||||
type = string
|
type = string
|
||||||
description = "The guest operating system edition. Used for naming."
|
description = "The guest operating system edition. Used for naming."
|
||||||
default = "ent"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "vm_os_type" {
|
variable "vm_os_type" {
|
||||||
@@ -297,6 +294,12 @@ variable "common_http_bind_address" {
|
|||||||
default = null
|
default = null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
variable "common_http_interface" {
|
||||||
|
type = string
|
||||||
|
description = "Name of the network interface that Packer gets HTTPIP from. Defaults to the first non loopback interface."
|
||||||
|
default = null
|
||||||
|
}
|
||||||
|
|
||||||
variable "common_http_port_min" {
|
variable "common_http_port_min" {
|
||||||
type = number
|
type = number
|
||||||
description = "The start of the HTTP port range."
|
description = "The start of the HTTP port range."
|
||||||
@@ -307,10 +310,10 @@ variable "common_http_port_max" {
|
|||||||
description = "The end of the HTTP port range."
|
description = "The end of the HTTP port range."
|
||||||
}
|
}
|
||||||
|
|
||||||
// variable "vm_boot_order" {
|
variable "vm_boot_order" {
|
||||||
// type = string
|
type = string
|
||||||
// description = "The boot order for virtual machines devices."
|
description = "The boot order for virtual machines devices."
|
||||||
// }
|
}
|
||||||
|
|
||||||
variable "vm_boot_wait" {
|
variable "vm_boot_wait" {
|
||||||
type = string
|
type = string
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
// The Packer configuration.
|
// The Packer configuration.
|
||||||
|
|
||||||
packer {
|
packer {
|
||||||
required_version = ">= 1.11.0"
|
required_version = ">= 1.12.0"
|
||||||
required_plugins {
|
required_plugins {
|
||||||
ansible = {
|
ansible = {
|
||||||
source = "github.com/hashicorp/ansible"
|
source = "github.com/hashicorp/ansible"
|
||||||
@@ -19,7 +19,7 @@ packer {
|
|||||||
source = "github.com/ethanmdavidson/git"
|
source = "github.com/ethanmdavidson/git"
|
||||||
}
|
}
|
||||||
proxmox = {
|
proxmox = {
|
||||||
version = ">= 1.2.2"
|
version = "= 1.2.1"
|
||||||
source = "github.com/hashicorp/proxmox"
|
source = "github.com/hashicorp/proxmox"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -125,11 +125,11 @@ source "proxmox-iso" "windows-desktop-pro" {
|
|||||||
"autounattend.xml" = templatefile("${abspath(path.root)}/data/autounattend.pkrtpl.hcl", {
|
"autounattend.xml" = templatefile("${abspath(path.root)}/data/autounattend.pkrtpl.hcl", {
|
||||||
build_username = var.build_username
|
build_username = var.build_username
|
||||||
build_password = var.build_password
|
build_password = var.build_password
|
||||||
vm_inst_os_eval = var.vm_inst_os_eval // Does not support evaluation.
|
vm_inst_os_eval = var.vm_inst_os_eval
|
||||||
vm_inst_os_language = var.vm_inst_os_language
|
vm_inst_os_language = var.vm_inst_os_language
|
||||||
vm_inst_os_keyboard = var.vm_inst_os_keyboard
|
vm_inst_os_keyboard = var.vm_inst_os_keyboard
|
||||||
vm_inst_os_image = var.vm_inst_os_image_pro
|
vm_inst_os_image = var.vm_inst_os_image_pro
|
||||||
vm_inst_os_key = var.vm_inst_os_key_pro // Does not support evaluation.
|
vm_inst_os_key = var.vm_inst_os_key_pro
|
||||||
vm_guest_os_language = var.vm_os_language
|
vm_guest_os_language = var.vm_os_language
|
||||||
vm_guest_os_keyboard = var.vm_os_keyboard
|
vm_guest_os_keyboard = var.vm_os_keyboard
|
||||||
vm_guest_os_timezone = var.vm_os_timezone
|
vm_guest_os_timezone = var.vm_os_timezone
|
||||||
@@ -141,6 +141,8 @@ source "proxmox-iso" "windows-desktop-pro" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Boot and Provisioning Settings
|
// Boot and Provisioning Settings
|
||||||
|
http_interface = var.common_http_interface
|
||||||
|
http_bind_address = var.common_http_bind_address
|
||||||
http_port_min = var.common_http_port_min
|
http_port_min = var.common_http_port_min
|
||||||
http_port_max = var.common_http_port_max
|
http_port_max = var.common_http_port_max
|
||||||
boot_wait = var.vm_boot_wait
|
boot_wait = var.vm_boot_wait
|
||||||
@@ -235,11 +237,11 @@ source "proxmox-iso" "windows-desktop-ent" {
|
|||||||
"autounattend.xml" = templatefile("${abspath(path.root)}/data/autounattend.pkrtpl.hcl", {
|
"autounattend.xml" = templatefile("${abspath(path.root)}/data/autounattend.pkrtpl.hcl", {
|
||||||
build_username = var.build_username
|
build_username = var.build_username
|
||||||
build_password = var.build_password
|
build_password = var.build_password
|
||||||
vm_inst_os_eval = var.vm_inst_os_eval // Does not support evaluation.
|
vm_inst_os_eval = var.vm_inst_os_eval
|
||||||
vm_inst_os_language = var.vm_inst_os_language
|
vm_inst_os_language = var.vm_inst_os_language
|
||||||
vm_inst_os_keyboard = var.vm_inst_os_keyboard
|
vm_inst_os_keyboard = var.vm_inst_os_keyboard
|
||||||
vm_inst_os_image = var.vm_inst_os_image_ent
|
vm_inst_os_image = var.vm_inst_os_image_ent
|
||||||
vm_inst_os_key = var.vm_inst_os_key_ent // Does not support evaluation.
|
vm_inst_os_key = var.vm_inst_os_key_ent
|
||||||
vm_guest_os_language = var.vm_os_language
|
vm_guest_os_language = var.vm_os_language
|
||||||
vm_guest_os_keyboard = var.vm_os_keyboard
|
vm_guest_os_keyboard = var.vm_os_keyboard
|
||||||
vm_guest_os_timezone = var.vm_os_timezone
|
vm_guest_os_timezone = var.vm_os_timezone
|
||||||
@@ -251,6 +253,8 @@ source "proxmox-iso" "windows-desktop-ent" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Boot and Provisioning Settings
|
// Boot and Provisioning Settings
|
||||||
|
http_interface = var.common_http_interface
|
||||||
|
http_bind_address = var.common_http_bind_address
|
||||||
http_port_min = var.common_http_port_min
|
http_port_min = var.common_http_port_min
|
||||||
http_port_max = var.common_http_port_max
|
http_port_max = var.common_http_port_max
|
||||||
boot_wait = var.vm_boot_wait
|
boot_wait = var.vm_boot_wait
|
||||||
@@ -272,7 +276,8 @@ source "proxmox-iso" "windows-desktop-ent" {
|
|||||||
|
|
||||||
build {
|
build {
|
||||||
sources = [
|
sources = [
|
||||||
"source.proxmox-iso.windows-desktop-ent"
|
"source.proxmox-iso.windows-desktop-pro",
|
||||||
|
"source.proxmox-iso.windows-desktop-ent",
|
||||||
]
|
]
|
||||||
|
|
||||||
provisioner "ansible" {
|
provisioner "ansible" {
|
||||||
|
|||||||
@@ -5,16 +5,20 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// Installation Operating System Metadata
|
// Installation Operating System Metadata
|
||||||
|
vm_inst_os_eval = true
|
||||||
|
vm_inst_os_language = "en-US"
|
||||||
|
vm_inst_os_keyboard = "en-US"
|
||||||
|
vm_inst_os_image_pro = "Windows 11 Pro"
|
||||||
vm_inst_os_key_pro = "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"
|
vm_inst_os_key_pro = "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"
|
||||||
|
vm_inst_os_image_ent = "Windows 11 Enterprise Evaluation"
|
||||||
vm_inst_os_key_ent = "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"
|
vm_inst_os_key_ent = "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"
|
||||||
|
|
||||||
// Virtual Machine Guest Operating System Setting
|
// Guest Operating System Metadata
|
||||||
vm_guest_os_type = "windows9_64Guest"
|
vm_os_language = "en-US"
|
||||||
|
vm_os_keyboard = "en-US"
|
||||||
// Virtual Machine Hardware Settings
|
vm_os_timezone = "UTC"
|
||||||
vm_firmware = "efi-secure"
|
vm_os_family = "windows"
|
||||||
|
vm_os_name = "desktop"
|
||||||
// Removable Media Settings
|
vm_os_version = "11"
|
||||||
iso_datastore_path = "iso/windows/windows-desktop/11/amd64"
|
vm_os_edition_pro = "pro"
|
||||||
iso_content_library_item = "22631.2428.231001-0608.23H2_NI_RELEASE_SVC_REFRESH_CLIENTENTERPRISEEVAL_OEMRET_x64FRE_en-us"
|
vm_os_edition_ent = "ent"
|
||||||
iso_file = "22631.2428.231001-0608.23H2_NI_RELEASE_SVC_REFRESH_CLIENTENTERPRISEEVAL_OEMRET_x64FRE_en-us.iso"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user