forked from AlmaLinux/cloud-images
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalmalinux_10_vagrant.pkr.hcl
More file actions
549 lines (517 loc) · 21.9 KB
/
almalinux_10_vagrant.pkr.hcl
File metadata and controls
549 lines (517 loc) · 21.9 KB
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
# AlmaLinux OS 10 Packer template for Vagrant boxes
source "hyperv-iso" "almalinux_10_vagrant_hyperv_x86_64" {
iso_url = local.iso_url_10_x86_64
iso_checksum = local.iso_checksum_10_x86_64
http_directory = var.http_directory
shutdown_command = var.vagrant_shutdown_command
communicator = "ssh"
ssh_username = var.vagrant_ssh_username
ssh_password = var.vagrant_ssh_password
ssh_timeout = var.ssh_timeout
boot_command = var.vagrant_boot_command_10_x86_64
boot_wait = var.boot_wait
disk_size = var.vagrant_disk_size
disk_block_size = 1
memory = var.memory_x86_64
switch_name = var.hyperv_switch_name
cpus = var.cpus
generation = 2
enable_dynamic_memory = true
headless = var.headless
}
source "qemu" "almalinux_10_vagrant_hyperv_x86_64" {
iso_url = local.iso_url_10_x86_64
iso_checksum = local.iso_checksum_10_x86_64
http_directory = var.http_directory
shutdown_command = var.vagrant_shutdown_command
ssh_username = var.vagrant_ssh_username
ssh_password = var.vagrant_ssh_password
ssh_timeout = var.ssh_timeout
boot_command = var.hyperv_boot_command_10_x86_64
boot_wait = var.boot_wait
accelerator = "kvm"
disk_interface = "virtio-scsi"
disk_size = var.vagrant_disk_size
disk_cache = "unsafe"
disk_discard = "unmap"
disk_detect_zeroes = "unmap"
format = "raw"
headless = var.headless
machine_type = "q35"
memory = var.memory_x86_64
net_device = "virtio-net"
qemu_binary = var.qemu_binary
vm_name = "almalinux_10_vagrant_hyperv_x86_64.raw"
cpu_model = "host"
cpus = var.cpus
efi_boot = true
efi_firmware_code = var.ovmf_code
efi_firmware_vars = var.ovmf_vars
efi_drop_efivars = true
}
source "qemu" "almalinux_10_vagrant_libvirt_x86_64" {
iso_url = local.iso_url_10_x86_64
iso_checksum = local.iso_checksum_10_x86_64
http_directory = var.http_directory
shutdown_command = var.vagrant_shutdown_command
ssh_username = var.vagrant_ssh_username
ssh_password = var.vagrant_ssh_password
ssh_timeout = var.ssh_timeout
boot_command = var.vagrant_boot_command_10_x86_64
boot_wait = var.boot_wait
accelerator = "kvm"
disk_interface = "virtio-scsi"
disk_size = var.vagrant_disk_size
disk_cache = "unsafe"
disk_discard = "unmap"
disk_detect_zeroes = "unmap"
disk_compression = true
format = "qcow2"
headless = var.headless
machine_type = "q35"
memory = var.memory_x86_64
net_device = "virtio-net"
qemu_binary = var.qemu_binary
vm_name = "AlmaLinux-10-Vagrant-Libvirt-${var.os_ver_10}-${formatdate("YYYYMMDD", timestamp())}.${var.build_number}.x86_64.qcow2"
cpu_model = "host"
cpus = var.cpus
efi_boot = true
efi_firmware_code = var.ovmf_code
efi_firmware_vars = var.ovmf_vars
efi_drop_efivars = true
}
source "virtualbox-iso" "almalinux_10_vagrant_virtualbox_x86_64" {
iso_url = local.iso_url_10_x86_64
iso_checksum = local.iso_checksum_10_x86_64
http_directory = var.http_directory
shutdown_command = var.vagrant_shutdown_command
ssh_username = var.vagrant_ssh_username
ssh_password = var.vagrant_ssh_password
ssh_timeout = var.ssh_timeout
boot_command = var.vagrant_boot_command_10_x86_64
boot_wait = var.boot_wait
firmware = "efi"
disk_size = var.vagrant_disk_size
guest_os_type = "RedHat_64"
cpus = var.cpus
memory = var.memory_x86_64
headless = var.headless
hard_drive_interface = "sata"
iso_interface = "sata"
vboxmanage = [["modifyvm", "{{.Name}}", "--nat-localhostreachable1", "on"]]
vboxmanage_post = [
["modifyvm", "{{.Name}}", "--memory", var.post_memory],
["modifyvm", "{{.Name}}", "--cpus", var.post_cpus],
]
}
source "vmware-iso" "almalinux_10_vagrant_vmware_x86_64" {
iso_url = local.iso_url_10_x86_64
iso_checksum = local.iso_checksum_10_x86_64
http_directory = var.http_directory
shutdown_command = var.vagrant_shutdown_command
ssh_username = var.vagrant_ssh_username
ssh_password = var.vagrant_ssh_password
ssh_timeout = var.ssh_timeout
boot_command = var.vagrant_boot_command_10_x86_64
boot_wait = var.boot_wait
disk_size = var.vagrant_disk_size
guest_os_type = "centos-64"
version = 21
vm_name = "AlmaLinux-10-Vagrant-VMware-${var.os_ver_10}-${formatdate("YYYYMMDD", timestamp())}.${var.build_number}.x86_64"
firmware = "efi"
cpus = var.cpus
memory = var.memory_x86_64
network_adapter_type = "vmxnet3"
headless = var.headless
vmx_remove_ethernet_interfaces = true
vmx_data = {
"cpuid.coresPerSocket" = "1"
}
vmx_data_post = {
"memsize" = var.post_memory
"numvcpus" = var.post_cpus
}
}
source "parallels-iso" "almalinux_10_vagrant_parallels_aarch64" {
iso_url = local.iso_url_10_aarch64
iso_checksum = local.iso_checksum_10_aarch64
http_directory = var.http_directory
shutdown_command = var.vagrant_shutdown_command
ssh_username = var.vagrant_ssh_username
ssh_password = var.vagrant_ssh_password
ssh_timeout = var.ssh_timeout
boot_command = var.vagrant_boot_command_10_aarch64
boot_wait = var.boot_wait
cpus = var.cpus
disk_size = var.vagrant_disk_size
guest_os_type = "centos"
memory = var.memory_aarch64
parallels_tools_flavor = var.parallels_tools_flavor_aarch64
}
source "virtualbox-iso" "almalinux_10_vagrant_virtualbox_aarch64" {
iso_url = local.iso_url_10_aarch64
iso_checksum = local.iso_checksum_10_aarch64
http_directory = var.http_directory
shutdown_command = var.vagrant_shutdown_command
ssh_username = var.vagrant_ssh_username
ssh_password = var.vagrant_ssh_password
ssh_timeout = var.ssh_timeout
boot_command = var.vagrant_boot_command_10_aarch64
boot_wait = var.boot_wait
disk_size = var.vagrant_disk_size
guest_os_type = "RedHat_64"
cpus = var.cpus
memory = var.memory_aarch64
headless = var.headless
hard_drive_interface = "sata"
vboxmanage = [["modifyvm", "{{.Name}}", "--nat-localhostreachable1", "on"]]
vboxmanage_post = [
["modifyvm", "{{.Name}}", "--memory", var.post_memory],
["modifyvm", "{{.Name}}", "--cpus", var.post_cpus],
]
}
source "vmware-iso" "almalinux_10_vagrant_vmware_aarch64" {
iso_url = local.iso_url_10_aarch64
iso_checksum = local.iso_checksum_10_aarch64
http_directory = var.http_directory
shutdown_command = var.vagrant_shutdown_command
ssh_username = var.vagrant_ssh_username
ssh_password = var.vagrant_ssh_password
ssh_timeout = var.ssh_timeout
boot_command = var.vagrant_boot_command_10_aarch64
boot_wait = var.boot_wait
disk_size = var.vagrant_disk_size
guest_os_type = "arm-rhel9-64"
version = 21
vm_name = "AlmaLinux-10-Vagrant-VMware-${var.os_ver_10}-${formatdate("YYYYMMDD", timestamp())}.${var.build_number}.aarch64"
firmware = "efi"
cpus = var.cpus
memory = var.memory_aarch64
network_adapter_type = "vmxnet3"
headless = var.headless
vmx_remove_ethernet_interfaces = true
usb = true
disk_adapter_type = "nvme"
}
source "hyperv-iso" "almalinux_10_vagrant_hyperv_x86_64_v2" {
iso_url = local.iso_url_10_x86_64_v2
iso_checksum = local.iso_checksum_10_x86_64_v2
http_directory = var.http_directory
shutdown_command = var.vagrant_shutdown_command
communicator = "ssh"
ssh_username = var.vagrant_ssh_username
ssh_password = var.vagrant_ssh_password
ssh_timeout = var.ssh_timeout
boot_command = var.vagrant_boot_command_10_x86_64_v2
boot_wait = var.boot_wait
disk_size = var.vagrant_disk_size
disk_block_size = 1
memory = var.memory_x86_64
switch_name = var.hyperv_switch_name
cpus = var.cpus
generation = 2
enable_dynamic_memory = true
headless = var.headless
}
source "qemu" "almalinux_10_vagrant_hyperv_x86_64_v2" {
iso_url = local.iso_url_10_x86_64_v2
iso_checksum = local.iso_checksum_10_x86_64_v2
http_directory = var.http_directory
shutdown_command = var.vagrant_shutdown_command
ssh_username = var.vagrant_ssh_username
ssh_password = var.vagrant_ssh_password
ssh_timeout = var.ssh_timeout
boot_command = var.hyperv_boot_command_10_x86_64_v2
boot_wait = var.boot_wait
accelerator = "kvm"
disk_interface = "virtio-scsi"
disk_size = var.vagrant_disk_size
disk_cache = "unsafe"
disk_discard = "unmap"
disk_detect_zeroes = "unmap"
format = "raw"
headless = var.headless
machine_type = "q35"
memory = var.memory_x86_64
net_device = "virtio-net"
qemu_binary = var.qemu_binary
vm_name = "almalinux_10_vagrant_hyperv_x86_64_v2.raw"
cpu_model = "host"
cpus = var.cpus
efi_boot = true
efi_firmware_code = var.ovmf_code
efi_firmware_vars = var.ovmf_vars
efi_drop_efivars = true
}
source "qemu" "almalinux_10_vagrant_libvirt_x86_64_v2" {
iso_url = local.iso_url_10_x86_64_v2
iso_checksum = local.iso_checksum_10_x86_64_v2
http_directory = var.http_directory
shutdown_command = var.vagrant_shutdown_command
ssh_username = var.vagrant_ssh_username
ssh_password = var.vagrant_ssh_password
ssh_timeout = var.ssh_timeout
boot_command = var.vagrant_boot_command_10_x86_64_v2
boot_wait = var.boot_wait
accelerator = "kvm"
disk_interface = "virtio-scsi"
disk_size = var.vagrant_disk_size
disk_cache = "unsafe"
disk_discard = "unmap"
disk_detect_zeroes = "unmap"
disk_compression = true
format = "qcow2"
headless = var.headless
machine_type = "q35"
memory = var.memory_x86_64
net_device = "virtio-net"
qemu_binary = var.qemu_binary
vm_name = "AlmaLinux-10-Vagrant-Libvirt-${var.os_ver_10}-${formatdate("YYYYMMDD", timestamp())}.${var.build_number}.x86_64_v2.qcow2"
cpu_model = "Nehalem"
cpus = var.cpus
efi_boot = true
efi_firmware_code = var.ovmf_code
efi_firmware_vars = var.ovmf_vars
efi_drop_efivars = true
}
source "virtualbox-iso" "almalinux_10_vagrant_virtualbox_x86_64_v2" {
iso_url = local.iso_url_10_x86_64_v2
iso_checksum = local.iso_checksum_10_x86_64_v2
http_directory = var.http_directory
shutdown_command = var.vagrant_shutdown_command
ssh_username = var.vagrant_ssh_username
ssh_password = var.vagrant_ssh_password
ssh_timeout = var.ssh_timeout
boot_command = var.vagrant_boot_command_10_x86_64_v2
boot_wait = var.boot_wait
firmware = "efi"
disk_size = var.vagrant_disk_size
guest_os_type = "RedHat_64"
cpus = var.cpus
memory = var.memory_x86_64
headless = var.headless
hard_drive_interface = "sata"
iso_interface = "sata"
vboxmanage = [["modifyvm", "{{.Name}}", "--nat-localhostreachable1", "on"]]
vboxmanage_post = [
["modifyvm", "{{.Name}}", "--memory", var.post_memory],
["modifyvm", "{{.Name}}", "--cpus", var.post_cpus],
]
}
source "vmware-iso" "almalinux_10_vagrant_vmware_x86_64_v2" {
iso_url = local.iso_url_10_x86_64_v2
iso_checksum = local.iso_checksum_10_x86_64_v2
http_directory = var.http_directory
shutdown_command = var.vagrant_shutdown_command
ssh_username = var.vagrant_ssh_username
ssh_password = var.vagrant_ssh_password
ssh_timeout = var.ssh_timeout
boot_command = var.vagrant_boot_command_10_x86_64_v2
boot_wait = var.boot_wait
disk_size = var.vagrant_disk_size
guest_os_type = "centos-64"
version = 21
vm_name = "AlmaLinux-10-Vagrant-VMware-${var.os_ver_10}-${formatdate("YYYYMMDD", timestamp())}.${var.build_number}.x86_64_v2"
firmware = "efi"
cpus = var.cpus
memory = var.memory_x86_64
network_adapter_type = "vmxnet3"
headless = var.headless
vmx_remove_ethernet_interfaces = true
vmx_data = {
"cpuid.coresPerSocket" = "1"
}
vmx_data_post = {
"memsize" = var.post_memory
"numvcpus" = var.post_cpus
}
}
build {
sources = [
"source.hyperv-iso.almalinux_10_vagrant_hyperv_x86_64",
"source.qemu.almalinux_10_vagrant_hyperv_x86_64",
"source.qemu.almalinux_10_vagrant_libvirt_x86_64",
"source.virtualbox-iso.almalinux_10_vagrant_virtualbox_x86_64",
"source.vmware-iso.almalinux_10_vagrant_vmware_x86_64",
"source.parallels-iso.almalinux_10_vagrant_parallels_aarch64",
"source.virtualbox-iso.almalinux_10_vagrant_virtualbox_aarch64",
"source.vmware-iso.almalinux_10_vagrant_vmware_aarch64",
"source.hyperv-iso.almalinux_10_vagrant_hyperv_x86_64_v2",
"source.qemu.almalinux_10_vagrant_hyperv_x86_64_v2",
"source.qemu.almalinux_10_vagrant_libvirt_x86_64_v2",
"source.virtualbox-iso.almalinux_10_vagrant_virtualbox_x86_64_v2",
"source.vmware-iso.almalinux_10_vagrant_vmware_x86_64_v2",
]
provisioner "ansible" {
user = "vagrant"
use_proxy = false
galaxy_file = "./ansible/requirements.yml"
galaxy_force_install = true
collections_path = "./ansible/collections"
roles_path = "./ansible/roles"
playbook_file = "./ansible/vagrant.yml"
ansible_env_vars = [
"ANSIBLE_PIPELINING=True",
"ANSIBLE_REMOTE_TEMP=/tmp",
"ANSIBLE_SSH_TRANSFER_METHOD=scp",
"ANSIBLE_SCP_EXTRA_ARGS=-O",
"ANSIBLE_HOST_KEY_CHECKING=False",
]
extra_arguments = [
"--extra-vars",
"packer_provider=${source.type} ansible_ssh_pass=vagrant",
]
only = [
"hyperv-iso.almalinux_10_vagrant_hyperv_x86_64",
"hyperv-iso.almalinux_10_vagrant_hyperv_x86_64_v2",
]
}
provisioner "ansible" {
user = "vagrant"
use_proxy = false
galaxy_file = "./ansible/requirements.yml"
galaxy_force_install = true
collections_path = "./ansible/collections"
roles_path = "./ansible/roles"
playbook_file = "./ansible/hyperv.yml"
ansible_env_vars = [
"ANSIBLE_PIPELINING=True",
"ANSIBLE_REMOTE_TEMP=/tmp",
"ANSIBLE_SSH_TRANSFER_METHOD=scp",
"ANSIBLE_SCP_EXTRA_ARGS=-O",
"ANSIBLE_HOST_KEY_CHECKING=False",
]
extra_arguments = [
"--extra-vars",
"packer_provider=${source.type} ansible_ssh_pass=vagrant",
]
only = [
"qemu.almalinux_10_vagrant_hyperv_x86_64",
"qemu.almalinux_10_vagrant_hyperv_x86_64_v2",
]
}
provisioner "shell" {
expect_disconnect = true
inline = ["sudo rm -fr /etc/ssh/*host*key*"]
only = [
"hyperv-iso.almalinux_10_vagrant_hyperv_x86_64",
"hyperv-iso.almalinux_10_vagrant_hyperv_x86_64_v2",
"qemu.almalinux_10_vagrant_hyperv_x86_64",
"qemu.almalinux_10_vagrant_hyperv_x86_64_v2",
]
}
provisioner "ansible" {
user = "vagrant"
galaxy_file = "./ansible/requirements.yml"
galaxy_force_install = true
collections_path = "./ansible/collections"
roles_path = "./ansible/roles"
playbook_file = "./ansible/vagrant.yml"
ansible_env_vars = [
"ANSIBLE_PIPELINING=True",
"ANSIBLE_REMOTE_TEMP=/tmp",
"ANSIBLE_SSH_TRANSFER_METHOD=scp",
"ANSIBLE_SCP_EXTRA_ARGS=-O",
]
extra_arguments = [
"--extra-vars",
"packer_provider=${source.type}",
]
only = [
"qemu.almalinux_10_vagrant_libvirt_x86_64",
"virtualbox-iso.almalinux_10_vagrant_virtualbox_x86_64",
"vmware-iso.almalinux_10_vagrant_vmware_x86_64",
"parallels-iso.almalinux_10_vagrant_parallels_aarch64",
"virtualbox-iso.almalinux_10_vagrant_virtualbox_aarch64",
"vmware-iso.almalinux_10_vagrant_vmware_aarch64",
"qemu.almalinux_10_vagrant_libvirt_x86_64_v2",
"virtualbox-iso.almalinux_10_vagrant_virtualbox_x86_64_v2",
"vmware-iso.almalinux_10_vagrant_vmware_x86_64_v2",
]
}
post-processors {
post-processor "vagrant" {
compression_level = "9"
output = "AlmaLinux-10-Vagrant-{{.Provider}}-${var.os_ver_10}-${formatdate("YYYYMMDD", timestamp())}.${var.build_number}.x86_64.box"
only = [
"hyperv-iso.almalinux_10_vagrant_hyperv_x86_64",
"virtualbox-iso.almalinux_10_vagrant_virtualbox_x86_64",
"vmware-iso.almalinux_10_vagrant_vmware_x86_64",
]
}
post-processor "vagrant" {
compression_level = "9"
vagrantfile_template = "tpl/vagrant/vagrantfile-libvirt.rb"
output = "AlmaLinux-10-Vagrant-{{.Provider}}-${var.os_ver_10}-${formatdate("YYYYMMDD", timestamp())}.${var.build_number}.x86_64.box"
only = ["qemu.almalinux_10_vagrant_libvirt_x86_64"]
}
post-processor "vagrant" {
compression_level = "9"
output = "AlmaLinux-10-Vagrant-{{.Provider}}-${var.os_ver_10}-${formatdate("YYYYMMDD", timestamp())}.${var.build_number}.aarch64.box"
only = [
"parallels-iso.almalinux_10_vagrant_parallels_aarch64",
"virtualbox-iso.almalinux_10_vagrant_virtualbox_aarch64",
"vmware-iso.almalinux_10_vagrant_vmware_aarch64",
]
}
post-processor "vagrant" {
compression_level = "9"
output = "AlmaLinux-10-Vagrant-{{.Provider}}-${var.os_ver_10}-${formatdate("YYYYMMDD", timestamp())}.${var.build_number}.x86_64_v2.box"
only = [
"hyperv-iso.almalinux_10_vagrant_hyperv_x86_64_v2",
"virtualbox-iso.almalinux_10_vagrant_virtualbox_x86_64_v2",
"vmware-iso.almalinux_10_vagrant_vmware_x86_64_v2",
]
}
post-processor "vagrant" {
compression_level = "9"
vagrantfile_template = "tpl/vagrant/vagrantfile-libvirt.rb"
output = "AlmaLinux-10-Vagrant-{{.Provider}}-${var.os_ver_10}-${formatdate("YYYYMMDD", timestamp())}.${var.build_number}.x86_64_v2.box"
only = ["qemu.almalinux_10_vagrant_libvirt_x86_64_v2"]
}
post-processor "shell-local" {
inline = [
"tools/fix-vagrant-virtualbox-ovf.sh AlmaLinux-10-Vagrant-virtualbox-${var.os_ver_10}-${formatdate("YYYYMMDD", timestamp())}.${var.build_number}.x86_64.box"
]
only = ["virtualbox-iso.almalinux_10_vagrant_virtualbox_x86_64"]
}
post-processor "shell-local" {
inline = [
"tools/fix-vagrant-virtualbox-ovf.sh AlmaLinux-10-Vagrant-virtualbox-${var.os_ver_10}-${formatdate("YYYYMMDD", timestamp())}.${var.build_number}.aarch64.box"
]
only = ["virtualbox-iso.almalinux_10_vagrant_virtualbox_aarch64"]
}
post-processor "shell-local" {
inline = [
"tools/fix-vagrant-virtualbox-ovf.sh AlmaLinux-10-Vagrant-virtualbox-${var.os_ver_10}-${formatdate("YYYYMMDD", timestamp())}.${var.build_number}.x86_64_v2.box"
]
only = ["virtualbox-iso.almalinux_10_vagrant_virtualbox_x86_64_v2"]
}
post-processor "shell-local" {
inline = [
"tools/raw-to-vagrant-hyperv.sh ${source.name} AlmaLinux-10-Vagrant-hyperv-${var.os_ver_10}-${formatdate("YYYYMMDD", timestamp())}.${var.build_number}.x86_64"
]
only = ["qemu.almalinux_10_vagrant_hyperv_x86_64"]
}
post-processor "shell-local" {
inline = [
"tools/raw-to-vagrant-hyperv.sh ${source.name} AlmaLinux-10-Vagrant-hyperv-${var.os_ver_10}-${formatdate("YYYYMMDD", timestamp())}.${var.build_number}.x86_64_v2"
]
only = ["qemu.almalinux_10_vagrant_hyperv_x86_64_v2"]
}
post-processor "artifice" {
files = [
"AlmaLinux-10-Vagrant-hyperv-${var.os_ver_10}-${formatdate("YYYYMMDD", timestamp())}.${var.build_number}.x86_64.box",
"AlmaLinux-10-Vagrant-hyperv-${var.os_ver_10}-${formatdate("YYYYMMDD", timestamp())}.${var.build_number}.x86_64.raw",
]
only = ["qemu.almalinux_10_vagrant_hyperv_x86_64"]
}
post-processor "artifice" {
files = [
"AlmaLinux-10-Vagrant-hyperv-${var.os_ver_10}-${formatdate("YYYYMMDD", timestamp())}.${var.build_number}.x86_64_v2.box",
"AlmaLinux-10-Vagrant-hyperv-${var.os_ver_10}-${formatdate("YYYYMMDD", timestamp())}.${var.build_number}.x86_64_v2.raw",
]
only = ["qemu.almalinux_10_vagrant_hyperv_x86_64_v2"]
}
}
}