This repository has been archived by the owner on Dec 20, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
adsy-ubuntu-14.json
120 lines (120 loc) · 3.51 KB
/
adsy-ubuntu-14.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
117
118
119
120
{
"builders": [
{
"type": "virtualbox-iso",
"iso_url": "http://mirror.switch.ch/ftp/mirror/ubuntu-cdimage/14.04/ubuntu-14.04.5-server-amd64.iso",
"iso_checksum": "dde07d37647a1d2d9247e33f14e91acb10445a97578384896b4e1d985f754cc1",
"iso_checksum_type": "sha256",
"output_directory": "output/adsy-ubuntu-14",
"disk_size": 20480,
"format": "ovf",
"headless": false,
"http_directory": "httpdir",
"http_port_min": 10082,
"http_port_max": 10089,
"ssh_host_port_min": 2222,
"ssh_host_port_max": 2229,
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_wait_timeout": "20m",
"shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now",
"vm_name": "adsy-ubuntu-14",
"boot_wait": "5s",
"boot_command": [
"<esc><wait>",
"<esc><wait>",
"<enter><wait>",
"/install/vmlinuz",
" initrd=/install/initrd.gz",
" auto=true",
" priority=critical",
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{ .Name }}_ks.cfg",
" --",
"<enter><wait>"
],
"guest_os_type": "Ubuntu_64",
"guest_additions_path": "VBoxGuestAdditions_{{ .Version }}.iso",
"virtualbox_version_file": ".vbox_version",
"vboxmanage": [
[
"modifyvm",
"{{ .Name }}",
"--memory",
"1024"
],
[
"modifyvm",
"{{ .Name }}",
"--cpus",
"1"
]
]
},
{
"type": "qemu",
"iso_url": "http://mirror.switch.ch/ftp/mirror/ubuntu-cdimage/14.04/ubuntu-14.04.5-server-amd64.iso",
"iso_checksum": "dde07d37647a1d2d9247e33f14e91acb10445a97578384896b4e1d985f754cc1",
"iso_checksum_type": "sha256",
"output_directory": "output/adsy-ubuntu-14",
"disk_size": 20480,
"format": "qcow2",
"headless": false,
"http_directory": "httpdir",
"http_port_min": 10082,
"http_port_max": 10089,
"ssh_host_port_min": 2222,
"ssh_host_port_max": 2229,
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_wait_timeout": "20m",
"shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now",
"vm_name": "adsy-ubuntu-14",
"boot_wait": "5s",
"boot_command": [
"<esc><wait>",
"<esc><wait>",
"<enter><wait>",
"/install/vmlinuz",
" initrd=/install/initrd.gz",
" auto=true",
" priority=critical",
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{ .Name }}_ks.cfg",
" --",
"<enter><wait>"
],
"accelerator": "kvm",
"net_device": "virtio-net",
"disk_interface": "virtio"
}
],
"provisioners": [
{
"type": "shell",
"execute_command": "echo 'vagrant' | {{ .Vars }} sudo -S -E bash '{{ .Path }}'",
"script": "scripts/sudo.sh"
},
{
"type": "shell",
"execute_command": "echo 'vagrant' | {{ .Vars }} sudo -S -E bash '{{ .Path }}'",
"script": "scripts/sshd.sh"
},
{
"type": "shell",
"execute_command": "echo 'vagrant' | {{ .Vars }} sudo -S -E bash '{{ .Path }}'",
"script": "scripts/virtualbox.sh"
},
{
"type": "shell",
"execute_command": "echo 'vagrant' | {{ .Vars }} sudo -S -E bash '{{ .Path }}'",
"script": "scripts/cleanup.sh"
}
],
"post-processors": [
{
"type": "vagrant",
"output": "{{ .Provider }}-adsy-ubuntu-14.box"
}
]
}