-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.pkr.hcl
121 lines (100 loc) · 1.94 KB
/
variables.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
variable "template_ssh_username" {
type = string
default = "ubuntu"
}
variable "template_ssh_password" {
type = string
default = "ubuntu"
}
variable "proxmox_username" {
type = string
default = "packer@pve"
}
variable "proxmox_password" {
type = string
default = "toortoor"
}
variable "proxmox_node" {
type = string
default = "proxmox"
}
variable "proxmox_url" {
type = string
default = "https://127.0.0.1:8006/api2/json"
}
variable "proxmox_insecure_skip_tls_verify" {
type = bool
default = false
}
variable "template_name" {
type = string
default = "ubuntu2004"
}
variable "template_description" {
type = string
default = "Ubuntu 20.04 x86_64 template built with packer"
}
variable "template_os" {
type = string
default = "l26"
}
variable "template_iso_file" {
type = string
default = "local:iso/ubuntu-20.04.2-live-server-amd64.iso"
}
variable "template_unmount_iso" {
type = bool
default = true
}
variable "template_memory" {
type = string
default = 1024
}
variable "template_cores" {
type = string
default = 1
}
variable "template_cpu_type" {
type = string
default = "host"
}
variable "tempalte_scsi_controller" {
type = string
default = "virtio-scsi-pci"
}
variable "template_qemu_agent" {
type = bool
default = true
}
variable "template_vga_type" {
type = string
default = "qxl"
}
variable "template_vga_memory" {
type = string
default = 32
}
variable "template_network_model" {
type = string
default = "virtio"
}
variable "template_network_bridge" {
type = string
default = "vmbr0"
}
variable "template_disks_disk_size" {
type = string
default = "10G"
}
variable "template_disks_storage_pool" {
type = string
default = "local-lvm"
}
variable "template_disks_storage_pool_type" {
type = string
default = "lvm"
}
variable "template_disks_type" {
type = string
default = "virtio"
}