-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.json
47 lines (39 loc) · 1.33 KB
/
template.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
{
"builders": [{
"type": "virtualbox-iso",
"virtualbox_version_file": ".vbox_version",
"headless": false,
"guest_os_type": "Debian",
"guest_additions_mode": "disable",
"disk_size": 40960,
"iso_url": "http://cdimage.debian.org/debian-cd/7.8.0/i386/iso-cd/debian-7.8.0-i386-netinst.iso",
"iso_checksum_type": "sha512",
"iso_checksum": "c22be055c31fdd9a93afd850f47776e91e72f1deb697061850338e1245f4b6b1934c3a2a041e1002b2c103f5fe0d52f6ef26d12c528b99d4ffdd7fc67b4a3de1",
"http_directory": "http",
"boot_command": ["<esc><wait>auto url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg <enter><wait>"],
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "1024"],
["modifyvm", "{{.Name}}", "--cpus", "1"],
["modifyvm", "{{.Name}}", "--pae", "on"]
],
"shutdown_command": "echo 'vagrant'|sudo -S /sbin/halt -h -p"
}],
"post-processors": [{
"output": "build/yesod.box",
"keep_input_artifact": true,
"type": "vagrant"
}],
"provisioners": [{
"type": "shell",
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"scripts": [
"scripts/vagrant.sh",
"scripts/yesod.sh",
"scripts/compact.sh"
]
}]
}