-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvars-2k19-qemu.pkr.hcl
99 lines (83 loc) · 1.97 KB
/
vars-2k19-qemu.pkr.hcl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# https://www.packer.io/docs/templates/hcl_templates/variables#type-constraints for more info.
# #################
# DISK INFO
# #################
# #################
variable "template_name" {
type = string
default = "win2k19"
}
variable "winrm_password" {
type = string
default = "packer"
sensitive = true
}
variable "winrm_username" {
type = string
default = "Administrator"
sensitive = true
}
variable "locale" {
type = string
sensitive = false
default = "en_US"
}
# #################
# VM VARS
# #################
variable "cpu" {
type = string
default = "4"
}
variable "ram" {
type = string
default = "4096"
}
variable "disk_size" {
type = string
default = "40960"
}
# #################
# BUILD VARS
# #################
variable "headless" {
type = string
default = "false"
}
variable "shutdown_command" {
type = string
default = "shutdown /s /t 5 /f /d p:4:1 /c \"Packer Shutdown\""
}
variable "winrm_insecure" {
type = bool
default = true
}
variable "winrm_use_ssl" {
type = bool
default = true
}
variable "winrm_timeout" {
type = string
default = "1h"
}
variable "shutdown_timeout" {
type = string
default = "30m"
}
variable "skip_compaction" {
type = bool
default = false
}
variable "qemu_out_dir" {
type = string
}
# The "legacy_isotime" function has been provided for backwards compatability, but we recommend switching to the timestamp and formatdate functions.
# All locals variables are generated from variables that uses expressions
# that are not allowed in HCL2 variables.
# Read the documentation for locals blocks here:
# https://www.packer.io/docs/templates/hcl_templates/blocks/locals
locals {
iso_checksum = "3022424f777b66a698047ba1c37812026b9714c5"
iso_url = "https://software-download.microsoft.com/download/pr/17763.737.190906-2324.rs5_release_svc_refresh_SERVER_EVAL_x64FRE_en-us_1.iso"
vm_name = "${var.template_name}-win2k19"
}