-
Notifications
You must be signed in to change notification settings - Fork 1
/
template.json
62 lines (62 loc) · 1.68 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
"variables": {
"iso_url": null
, "iso_checksum": null
, "iso_checksum_type": null
, "minor_version": null
, "headless": "false"
},
"provisioners": [
{
"type": "shell",
"execute_command": "echo 'vagrant'|{{ .Vars }} sudo -E -S bash '{{.Path}}'",
"override": {
"virtualbox-iso": {
"scripts": [
".ovs/networks.sh"
, ".ovs/cleanup.sh"
]
}
}
}
],
"post-processors": [
{
"type": "vagrant",
"override": {
"virtualbox": {
"output": "ovs-{{ user `minor_version` }}.box"
}
}
}
],
"builders": [
{
"type": "virtualbox-iso",
"boot_command": [
"mboot.c32 xen.gz --- vmlinuz ksdevice=eth0 ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks-{{user `minor_version`}}.cfg --- initrd.img <enter><wait>"
],
"boot_wait": "10s",
"disk_size": 12228,
"guest_os_type": "Oracle_64",
"headless": "{{ user `headless` }}",
"http_directory": "http",
"iso_checksum": "{{user `iso_checksum`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"iso_url": "{{user `iso_url`}}",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_wait_timeout": "40m",
"shutdown_command": "echo '/sbin/halt -h -p' > /tmp/shutdown.sh; echo 'vagrant'|sudo -S sh '/tmp/shutdown.sh'",
"guest_additions_mode" : "disable",
"virtualbox_version_file": ".vbox_version",
"vboxmanage": [
[ "modifyvm", "{{.Name}}", "--memory", "2048", "--vram", "10" ]
, [ "modifyvm", "{{.Name}}", "--cpus", "2" ]
, [ "modifyvm", "{{.Name}}", "--nic2", "intnet", "--intnet2", "intnet_2"]
]
, "vm_name": "ovs-{{ user `minor_version` }}"
}
]
}