This repository has been archived by the owner on Jan 4, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
eurobot-vm.json
166 lines (166 loc) · 4.17 KB
/
eurobot-vm.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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
{
"variables": {
"headless": "",
"auto_upgrade": "",
"iso_url": "http://ftp.halifax.rwth-aachen.de/ubuntu-releases/trusty/ubuntu-14.04.2-server-amd64.iso",
"iso_checksum": "3bfa6eac84d527380d0cc52db9092cde127f161e"
},
"builders": [
{
"vm_name": "eurobot-vm-14.04",
"type": "virtualbox-iso",
"http_directory": "http",
"iso_url": "{{ user `iso_url` }}",
"iso_checksum": "{{ user `iso_checksum` }}",
"iso_checksum_type": "sha1",
"guest_os_type": "Ubuntu_64",
"guest_additions_mode": "disable",
"virtualbox_version_file": ".vbox_version",
"ssh_username": "rca",
"ssh_password": "rca",
"ssh_wait_timeout": "10000s",
"boot_wait": "10s",
"headless": "{{ user `headless` }}",
"boot_command": [
"<esc><esc><enter><wait>",
"/install/vmlinuz auto",
" console-setup/ask_detect=false",
" console-setup/layoutcode=us",
" console-setup/modelcode=pc105",
" debconf/frontend=noninteractive",
" debian-installer=en_US",
" fb=false",
" initrd=/install/initrd.gz",
" kbd-chooser/method=us",
" keyboard-configuration/layout=USA",
" keyboard-configuration/variant=USA",
" locale=en_US",
" netcfg/get_domain=vm",
" netcfg/get_hostname=vagrant",
" noapic" ,
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg",
" -- ",
"<enter>"
],
"shutdown_command": "echo 'rca'|sudo -S shutdown -P now",
"disk_size": 10140,
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "2048"],
["modifyvm", "{{.Name}}", "--cpus", "2"]
]
}],
"provisioners": [
{
"type": "shell",
"execute_command": "echo 'rca' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [
"script/base.sh",
"script/vagrant.sh",
"script/sshd.sh"
]
},
{
"type": "file",
"source": "http/xfce4",
"destination": "~/xfce4"
},
{
"type": "file",
"source": "http/busblaster-ktlink.cfg",
"destination": "~/busblaster-ktlink.cfg"
},{
"type": "file",
"source": "http/40-openocd.rules",
"destination": "~/40-openocd.rules"
},{
"type": "file",
"source": "http/eaglerc",
"destination": "~/.eaglerc"
},{
"type": "file",
"source": "http/eclipse.desktop",
"destination": "~/eclipse.desktop"
},{
"type": "file",
"source": "http/eclipse.gtkrc",
"destination": "~/eclipse.gtkrc"
},{
"type": "file",
"source": "http/eclipse-nice.sh",
"destination": "~/eclipse-nice.sh"
},{
"type": "file",
"source": "http/gitconfig",
"destination": "~/.gitconfig"
},{
"type": "file",
"source": "http/rcarc",
"destination": "~/.rcarc"
},{
"type": "file",
"source": "http/ReadMe.html",
"destination": "~/ReadMe.html"
},{
"type": "file",
"source": "http/Season2013",
"destination": "~/Season2013"
},{
"type": "file",
"source": "http/Season2014",
"destination": "~/Season2014"
},{
"type": "file",
"source": "http/Season2015",
"destination": "~/Season2015"
},{
"type": "file",
"source": "http/Season2016",
"destination": "~/Season2016"
},{
"type": "file",
"source": "http/Initializer",
"destination": "~/Initializer"
},{
"type": "file",
"source": "http/init.sh",
"destination": "~/init.sh"
},
{
"type": "shell",
"execute_command": "echo 'rca' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [
"script/xfce.sh",
"script/vmtools.sh",
"script/xpcc.sh",
"script/tools.sh",
"script/xpcc_files.sh",
"script/java.sh",
"script/eclipse.sh",
"script/eagle.sh"
]
},
{
"type": "shell",
"execute_command": "bash '{{.Path}}'",
"scripts": [
"script/gedit.sh",
"script/zsh.sh",
"script/repositories.sh"
]
},
{
"type": "shell",
"execute_command": "echo 'rca' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [
"script/cleanup.sh",
"script/zerodisk.sh"
]
}],
"post-processors": [
{
"type": "vagrant",
"keep_input_artifact": false,
"vagrantfile_template": "tpl/vagrantfile-eurobot.tpl",
"output": "box/eurobot-vm.box"
}]
}