-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.pkrvars.hcl
62 lines (58 loc) · 1.56 KB
/
example.pkrvars.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
# user build settings
# hint: rename to *.auto.pkrvars.hcl to automatically load this file
image = {
name = "packer-templte"
base = "debian-12-genericcloud-amd64" # see: `images.auto.pkrvars.hcl`
shutdown_command = "sudo shutdown now"
user = "packer"
}
local_vm_settings = {
"cache" = "none"
"net_device" = "virtio-net"
"disk_interface" = "virtio-scsi"
"memory" = "512"
"output_format" = "qcow2"
"virtual_disk_size" = "16G"
}
vehost_sources = [
{
name = "pve1"
ssh_host = "pve1.example.org"
ssh_username = "root"
ssh_private_key_file = "~/.ssh/id_ed25519"
},
{
name = "pve2"
ssh_host = "pve2.example.org"
ssh_username = "root"
ssh_private_key_file = "~/.ssh/id_ed25519"
}
]
proxmox_settings = {
pve1 = {
memory = "4096"
cpu = 8
net = "virtio,bridge=vmbr0"
scsihw = "virtio-scsi-single"
imagestorage = "rpool2"
ostype = "l26"
balloon = 0
qemuagent = "enabled=1,fstrim_cloned_disks=1"
cache = "none"
discard = "on"
diskformat = "raw"
}
pve2 = {
memory = "4096"
cpu = 4
net = "virtio,bridge=vmbr0"
scsihw = "virtio-scsi-single"
imagestorage = "rpool2"
ostype = "l26"
balloon = 0
qemuagent = "enabled=1,fstrim_cloned_disks=1"
cache = "none"
discard = "on"
diskformat = "raw"
}
}