-
Notifications
You must be signed in to change notification settings - Fork 1
/
macosx-10.8.json
99 lines (98 loc) · 3.29 KB
/
macosx-10.8.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{
"builders": [
{
"boot_wait": "{{user `guest_boot_wait`}}",
"cpus": "{{user `guest_cpus`}}",
"disk_size": "{{user `guest_disk_size`}}",
"guest_os_type": "darwin12-64",
"iso_checksum": "md5:{{user `iso_checksum`}}",
"iso_url": "{{user `iso_url`}}",
"memory": "{{user `guest_memory`}}",
"output_directory": "packer-{{user `name`}}-vmware",
"shutdown_command": "echo 'vagrant'|sudo -S shutdown -h now",
"skip_compaction": true,
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_timeout": "10000s",
"ssh_username": "vagrant",
"tools_upload_flavor": "darwin",
"tools_upload_path": "/tmp/vmtools.iso",
"type": "vmware-iso",
"vm_name": "packer-{{user `name`}}",
"vmx_data": {
"cpuid.coresPerSocket": "1",
"ehci.present": "TRUE",
"firmware": "efi",
"hpet0.present": "TRUE",
"ich7m.present": "TRUE",
"keyboardAndMouseProfile": "macProfile",
"smc.present": "TRUE"
}
}
],
"min_packer_version": "0.7.0",
"post-processors": [
{
"output": "builds/{{user `user_prefix`}}__{{user `name`}}-{{user `version`}}+{{user `timestamp`}}.git.{{user `git_sha`}}.{{.Provider}}.box",
"type": "vagrant",
"vagrantfile_template": "vagrantfile_templates/macosx.rb"
}
],
"provisioners": [
{
"destination": "/private/tmp/kcpassword",
"source": "scripts/macosx/support/kcpassword",
"type": "file"
},
{
"environment_vars": [
"ftp_proxy={{user `ftp_proxy`}}",
"HOME_DIR={{user `home_dir`}}",
"http_proxy={{user `http_proxy`}}",
"https_proxy={{user `https_proxy`}}",
"no_proxy={{user `no_proxy`}}",
"VAGRANT_BOX={{user `user_prefix`}}/{{user `name`}},{{user `version`}}+{{user `timestamp`}}.git.{{user `git_sha`}}"
],
"execute_command": "echo 'vagrant'|{{.Vars}} sudo -S -E sh -eux '{{.Path}}'",
"scripts": [
"scripts/macosx/hostname.sh",
"scripts/macosx/update.sh",
"scripts/macosx/networking.sh",
"scripts/common/vagrant.sh",
"scripts/macosx/vmtools.sh",
"scripts/macosx/cleanup.sh",
"scripts/macosx/minimize.sh"
],
"type": "shell"
},
{
"execute_command": "echo 'vagrant'|{{.Vars}} sudo -S -E sh -eux '{{.Path}}'",
"inline": [
"[ -z \"{{user `autologin_vagrant_user`}}\" ] \u0026\u0026 exit",
"echo \"Enabling automatic GUI login for the 'vagrant' user..\"",
"cp /private/tmp/kcpassword /private/etc/kcpassword",
"/usr/bin/defaults write /Library/Preferences/com.apple.loginwindow autoLoginUser vagrant"
],
"type": "shell"
}
],
"variables": {
"autologin_vagrant_user": "",
"ftp_proxy": "{{env `ftp_proxy`}}",
"git_sha": "unset",
"guest_boot_wait": "2s",
"guest_cpus": "1",
"guest_disk_size": "20480",
"guest_memory": "3072",
"home_dir": "/Users/vagrant",
"http_proxy": "{{env `http_proxy`}}",
"https_proxy": "{{env `https_proxy`}}",
"iso_checksum": "0000",
"iso_url": "http://YOU-MUST-PROVIDE-YOUR-OWN-DMG.sorry",
"name": "macosx-10.8",
"no_proxy": "{{env `no_proxy`}}",
"timestamp": "{{isotime \"20060102150405\"}}",
"user_prefix": "fnichol",
"version": "1.1.1.dev"
}
}