-
Notifications
You must be signed in to change notification settings - Fork 30
/
rhel-7.0-vmware.json
56 lines (53 loc) · 1.39 KB
/
rhel-7.0-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
49
50
51
52
53
54
55
56
{
"variables": {
"vm_name": "rhel-7.0-vmware",
"iso_url": "{{env `ISO_URL`}}",
"iso_sha256": "85a9fedc2bf0fc825cc7817056aa00b3ea87d7e111e0cf8de77d3ba643f8646c"
},
"builders": [{
"type": "vmware-iso",
"vm_name": "{{user `vm_name`}}",
"guest_os_type": "rhel6-64",
"vmdk_name": "rhel7",
"disk_size": "8192",
"vmx_data": {
"numvcpus": 2,
"cpuid.coresPerSocket": 1,
"memsize": 2048,
"ethernet0.virtualDev": "vmxnet3",
"virtualHW.version": "10"
},
"iso_checksum_type": "sha256",
"iso_url": "{{user `iso_url`}}",
"iso_checksum": "{{user `iso_sha256`}}",
"tools_upload_flavor": "linux",
"tools_upload_path": "/tmp/vmware_tools_{{.Flavor}}.iso",
"http_directory": "http",
"ssh_wait_timeout": "20m",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"shutdown_command": "echo 'vagrant' | sudo -S /sbin/halt -h -p",
"boot_wait": "5s",
"boot_command": [
"<esc><wait>",
"vmlinuz initrd=initrd.img net.ifnames=0 biosdevname=0 ",
"ks=http://{{.HTTPIP}}:{{.HTTPPort}}/vmware-ks.cfg",
"<enter>"
]
}],
"provisioners": [{
"type": "shell",
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"scripts": [
"scripts/vagrant.sh",
"scripts/vmware.sh",
"scripts/sshd.sh",
"scripts/cleanup.sh"
]
}],
"post-processors": [{
"type": "vagrant",
"output": "{{user `vm_name`}}.box",
"keep_input_artifact": false
}]
}