-
Notifications
You must be signed in to change notification settings - Fork 0
/
vmware.json
48 lines (48 loc) · 1.51 KB
/
vmware.json
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
{
"variables": {
"basename": "centos-stream9",
"buildId": "",
"num_cpus": "2",
"memory": "2048",
"disk_size": "20000"
},
"builders": [{
"type": "vmware-iso",
"output_directory": "./output-{{ user `basename` }}/",
"boot_command": [
"<up><wait>",
"<tab> inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{ user `kickstart` }}<enter><wait>"
],
"boot_wait": "10s",
"cpus": "{{ user `num_cpus` }}",
"disk_size": "{{ user `disk_size` }}",
"disk_adapter_type": "nvme",
"display_name": "{{ user `basename` }}-{{ user `buildId` }}",
"guest_os_type": "rhel8-64",
"tools_upload_flavor": "",
"headless": false,
"http_directory": "http",
"iso_url": "{{ user `iso_url` }}",
"iso_checksum": "{{ user `iso_checksum` }}",
"memory": "{{ user `memory` }}",
"network": "nat",
"network_adapter_type": "vmxnet3",
"ssh_username": "packer",
"ssh_password": "packer",
"ssh_wait_timeout": "10000s",
"ssh_port": 22,
"shutdown_command": "echo 'packer' | sudo -E -S /sbin/shutdown -h now",
"version": "18",
"vm_name": "{{ user `basename` }}-{{ user `buildId` }}"
}],
"provisioners": [{
"type": "shell",
"execute_command": "echo 'packer' | {{ .Vars }} sudo -E -S sh '{{ .Path }}'",
"environment_vars": [
"templateName={{ user `basename` }}-{{ user `buildId` }}"
],
"scripts": [
"provisioners/base.sh"
]
}]
}