forked from bitcraze/bitcraze-vm
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbitcrazeVM_xubuntu-14.04.4-desktop_provisionVM.json
69 lines (63 loc) · 2.18 KB
/
bitcrazeVM_xubuntu-14.04.4-desktop_provisionVM.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
{
"variables" : {
"user" : "bitcraze",
"password" : "crazyflie",
"vm-name": "BitcrazeVM_0.9",
"contentDir": "contentForVM",
"gccFile": "gcc-arm-none-eabi-4_9-2014q4-20141203-linux.tar.bz2",
"pycharmFile": "pycharm-community-5.0.4.tar.gz",
"eclipseFile": "eclipse-cpp-mars-1-linux-gtk.tar.gz"
},
"builders": [{
"type": "virtualbox-ovf",
"vm_name": "{{user `vm-name`}}",
"source_path": "output-virtualbox-iso/{{user `vm-name`}}.ova",
"format": "ova",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "1024", "--vram", "16", "--mouse", "usbtablet", "--rtcuseutc", "on", "--audio", "pulse", "--audiocodec", "ad1980", "--usb", "on", "--usbehci", "on", "--nestedpaging", "off"],
["storageattach", "{{.Name}}", "--storagectl", "SATA Controller", "--port", "0", "--nonrotational", "on", "--discard", "on"]
],
"import_opts": "importtovdi",
"ssh_username": "{{user `user`}}",
"ssh_password": "{{user `password`}}",
"ssh_wait_timeout": "10000s",
"boot_wait": "30s",
"virtualbox_version_file": ".vbox_version",
"shutdown_command": "echo '{{user `password`}}' | sudo -S shutdown -P now"
}],
"provisioners": [{
"type": "file",
"source": "{{user `contentDir`}}/update_all_projects.sh",
"destination": "/home/bitcraze/update_all_projects.sh"
},
{
"type": "file",
"source": "{{user `contentDir`}}/desktop/",
"destination": "/home/bitcraze/Desktop"
},
{
"type": "file",
"source": "{{user `contentDir`}}/pictures/",
"destination": "/home/bitcraze/Pictures"
},
{
"type": "file",
"source": "{{user `contentDir`}}/{{user `gccFile`}}",
"destination": "/home/bitcraze/{{user `gccFile`}}"
},
{
"type": "file",
"source": "{{user `contentDir`}}/{{user `pycharmFile`}}",
"destination": "/home/bitcraze/{{user `pycharmFile`}}"
},
{
"type": "file",
"source": "{{user `contentDir`}}/{{user `eclipseFile`}}",
"destination": "/home/bitcraze/{{user `eclipseFile`}}"
},
{
"type": "shell",
"script": "provision.sh",
"execute_command": "echo '{{user `password`}}' | {{ .Vars }} sudo -E -S sh '{{ .Path }}'"
}]
}