-
Notifications
You must be signed in to change notification settings - Fork 1
/
precise64.json
116 lines (108 loc) · 3.68 KB
/
precise64.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
{
"variables": {
"iso_url": "http://releases.ubuntu.com/releases/precise/ubuntu-12.04.4-server-amd64.iso",
"iso_checksum": "e83adb9af4ec0a039e6a5c6e145a34de",
"iso_checksum_type": "md5",
"headless": "true",
"version": "1.0.0",
"build_number": "1"
},
"builders": [
{
"name": "vmware",
"type": "vmware-iso",
"vm_name": "precise64",
"iso_url": "{{user `iso_url`}}",
"iso_checksum": "{{user `iso_checksum`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_port": "22",
"ssh_wait_timeout": "30m",
"guest_os_type": "other",
"headless": "{{user `headless`}}",
"boot_wait": "10s",
"disk_type_id": 0,
"vmdk_name": "disk",
"http_directory" : "http",
"http_port_min" : 9001,
"http_port_max" : 9001,
"boot_command": [
"<esc><esc><enter><wait>",
"/install/vmlinuz noapic ",
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg ",
"debian-installer=en_US auto locale=en_US kbd-chooser/method=us ",
"hostname={{ .Name }} ",
"fb=false debconf/frontend=noninteractive ",
"keyboard-configuration/modelcode=SKIP keyboard-configuration/layout=USA ",
"keyboard-configuration/variant=USA console-setup/ask_detect=false ",
"initrd=/install/initrd.gz -- <enter>"
],
"shutdown_command": "echo 'shutdown -P now' > shutdown.sh; echo 'devvm'|sudo -S sh 'shutdown.sh'",
"vmx_data": {
"memsize": "2048",
"numvcpus":"2",
"tools.upgrade.policy": "manual"
}
}, {
"name": "virtualbox",
"type": "virtualbox-iso",
"vm_name": "precise64",
"iso_url": "{{user `iso_url`}}",
"iso_checksum": "{{user `iso_checksum`}}",
"iso_checksum_type": "md5",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_port": "22",
"ssh_wait_timeout": "30m",
"guest_os_type": "Ubuntu_64",
"guest_additions_path": "VBoxGuestAdditions.iso",
"guest_additions_mode": "upload",
"headless": "{{user `headless`}}",
"boot_wait": "10s",
"http_directory" : "http",
"http_port_min" : 9001,
"http_port_max" : 9001,
"boot_command": [
"<esc><esc><enter><wait>",
"/install/vmlinuz noapic ",
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg ",
"debian-installer=en_US auto locale=en_US kbd-chooser/method=us ",
"hostname={{ .Name }} ",
"fb=false debconf/frontend=noninteractive ",
"keyboard-configuration/modelcode=SKIP keyboard-configuration/layout=USA ",
"keyboard-configuration/variant=USA console-setup/ask_detect=false ",
"initrd=/install/initrd.gz -- <enter>"
],
"shutdown_command": "echo 'shutdown -P now' > shutdown.sh; echo 'devvm'|sudo -S sh 'shutdown.sh'",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "2048"],
["modifyvm", "{{.Name}}", "--cpus", "2"]
]
}
],
"provisioners": [
{
"type": "shell",
"scripts": [
"scripts/vagrant-user.sh",
"scripts/vagrant-ubuntu-update.sh",
"scripts/vagrant-ubuntu.sh",
"scripts/vagrant-sshkey.sh",
"scripts/install_tools.sh"
],
"execute_command": "echo 'vagrant' | sudo -S sh '{{ .Path }}'"
}
],
"post-processors": [
{
"type": "vagrant",
"only": ["virtualbox"],
"output": "precise64-{{user `version`}}-{{user `build_number`}}.box"
}, {
"type": "vagrant",
"only": ["vmware"],
"output": "precise64-{{user `version`}}-{{user `build_number`}}_vmware.box"
}
]
}