-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.json
46 lines (46 loc) · 1.19 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
{
"builders": [
{
"type": "virtualbox-iso",
"guest_additions_mode": "disable",
"guest_os_type": "ArchLinux_64",
"iso_url": "http://mirrors.kernel.org/archlinux/iso/2016.03.01/archlinux-2016.03.01-dual.iso",
"iso_checksum": "992f046c3fb5afecaf8734126f2a095f437ca9b8",
"iso_checksum_type": "sha1",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_timeout": "20m",
"shutdown_command": "echo 'vagrant' | sudo -S shutdown -P now",
"disk_size": 20000,
"http_directory": "http",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--boot1", "disk"],
["modifyvm", "{{.Name}}", "--boot2", "dvd"]
],
"boot_command": [
"<enter><wait10><wait10>",
"wget http://{{ .HTTPIP }}:{{ .HTTPPort }}/install.sh <enter><wait>",
"wget http://{{ .HTTPIP }}:{{ .HTTPPort }}/chroot.sh <enter><wait>",
"wget http://{{ .HTTPIP }}:{{ .HTTPPort }}/vagrant.pub <enter><wait>",
"sh install.sh<enter>"
]
}
],
"provisioners": [
{
"type": "shell",
"script": "scripts/bootstrap.sh"
},
{
"type": "shell",
"script": "scripts/virtualbox.sh",
"only": ["virtualbox-iso"]
}
],
"post-processors": [
{
"type": "vagrant",
"output": "htc.box"
}
]
}