-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcentos7.json
65 lines (58 loc) · 1.89 KB
/
centos7.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{
"variables": {
"vm_name": "{{env `PACKER_VM_NAME`}}",
"ssh_user_name": "{{env `PACKER_CENTOS7_ROOT_NAME`}}",
"ssh_user_password": "{{env `PACKER_CENTOS7_ROOT_PASSWORD`}}",
"vsphere_user": "{{env `PACKER_VSPHERE_USER`}}",
"vsphere_password": "{{env `PACKER_VSPHERE_PASSWORD`}}"
},
"builders": [
{
"type": "vmware-iso",
"version": "11",
"guest_os_type": "centos-64",
"communicator": "ssh",
"ssh_username": "{{user `ssh_user_name`}}",
"ssh_password": "{{user `ssh_user_password`}}",
"ssh_port": 22,
"ssh_wait_timeout": "1200s",
"iso_checksum": "714acc0aefb32b7d51b515e25546835e55a90da9fb00417fbee2d03a62801efd",
"iso_checksum_type": "sha256",
"iso_urls": [
"http://mirror.chpc.utah.edu/pub/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso",
"https://mirrors.edge.kernel.org/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso"
],
"boot_command": "<tab> inst.text inst.ks=hd:fd0:/ks.cfg <enter><wait>",
"boot_wait": "10s",
"disk_size": 200000,
"disk_type_id": 0,
"floppy_files": ["floppy/*"],
"shutdown_command": "echo 'packer'|/sbin/halt -h -p",
"vm_name": "{{user `vm_name`}}",
"network_adapter_type": "vmxnet3",
"vmx_data": {
"cpuid.coresPerSocket": "1",
"memsize": "4096",
"scsi0.virtualDev": "pvscsi"
},
"vnc_disable_password": true
}
],
"post-processors": [
{
"type": "vsphere",
"cluster": "General Cluster",
"datacenter": "DC",
"datastore": "DS01",
"host": "vc.company.com",
"password": "{{user `vsphere_password`}}",
"username": "{{user `vsphere_user`}}",
"vm_name": "{{user `vm_name`}}",
"disk_mode": "thin",
"vm_folder": "/PTA/Test",
"vm_network": "VLAN192",
"overwrite": "true",
"options": ["--noSSLVerify"]
}
]
}