-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfinal.json
77 lines (77 loc) · 2.09 KB
/
final.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
66
67
68
69
70
71
72
73
74
75
76
77
{
"builders": [
{
"type": "vmware-vmx",
"source_path": "output-vmware-iso/packer-vmware-iso.vmx",
"headless": "true",
"boot_wait": "2s",
"shutdown_command": "echo '{{user `username`}}'|sudo -S shutdown -h now",
"skip_compaction": false,
"ssh_port": 22,
"ssh_username": "{{user `username`}}",
"ssh_password": "{{user `password`}}",
"ssh_wait_timeout": "10000s",
"vmx_data": {
"cpuid.coresPerSocket": "1",
"memsize": "8192",
"numvcpus": "2",
"firmware": "efi",
"monitor.virtual_mmu": "hardware",
"monitor.virtual_exec": "hardware",
"vhv.enable": "TRUE",
"msg.autoAnswer": "TRUE",
"keyboardAndMouseProfile": "macProfile",
"smc.present": "TRUE",
"hpet0.present": "TRUE",
"ich7m.present": "TRUE",
"ehci.present": "TRUE",
"usb.present": "TRUE"
}
}
],
"min_packer_version": "0.7.0",
"post-processors": [
"vagrant"
],
"provisioners": [
{
"destination": "/private/tmp/vmware-provider.license",
"source": "{{user `vmware_provider_license`}}",
"type": "file"
},
{
"destination": "/private/tmp/vmware_prefs",
"source": "provision/vmware_prefs",
"type": "file"
},
{
"destination": "/Users/{{user `username`}}/Vagrantfile",
"source": "provision/Vagrantfile",
"type": "file"
},
{
"type": "shell-local",
"command": "sleep {{user `provisioning_delay`}}"
},
{
"scripts": [
"provision/brew.sh",
"provision/vagrant_with_fusion.sh"
],
"environment_vars": [
"USERNAME={{user `username`}}",
"PASSWORD={{user `password`}}",
"PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin",
"VMWARE_LICENSE_KEY={{user `vmware_license_key`}}"
],
"type": "shell"
}
],
"variables": {
"username": "vagrant",
"password": "vagrant",
"provisioning_delay": "0",
"vmware_provider_license": "override-with-packer-vars",
"vmware_license_key": "override-with-packer-vars"
}
}