forked from bitcraze/bitcraze-vm
-
Notifications
You must be signed in to change notification settings - Fork 2
/
nokovVM_provisionVM.json
103 lines (103 loc) · 2.55 KB
/
nokovVM_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
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
{
"builders": [
{
"boot_wait": "30s",
"format": "ova",
"import_opts": "importtovdi",
"shutdown_command": "echo '{{user `password`}}' | sudo -S shutdown -P now",
"source_path": "output-virtualbox-iso/{{user `vm-name`}}.ova",
"ssh_password": "{{user `password`}}",
"ssh_timeout": "10000s",
"ssh_username": "{{user `user`}}",
"type": "virtualbox-ovf",
"vboxmanage": [
[
"modifyvm",
"{{.Name}}",
"--cpus",
"2",
"--memory",
"2048",
"--vram",
"16",
"--mouse",
"usbtablet",
"--rtcuseutc",
"on",
"--audiocodec",
"ad1980",
"--usb",
"on",
"--usbxhci",
"on",
"--nestedpaging",
"off",
"--graphicscontroller",
"vmsvga"
],
[
"storageattach",
"{{.Name}}",
"--storagectl",
"SATA Controller",
"--port",
"0",
"--nonrotational",
"on",
"--discard",
"on"
]
],
"virtualbox_version_file": ".vbox_version",
"vm_name": "{{user `vm-name`}}"
}
],
"provisioners": [
{
"destination": "/home/nokov/update_all_projects.sh",
"source": "{{user `contentDir`}}/update_all_projects.sh",
"type": "file"
},
{
"destination": "/home/nokov/Desktop",
"source": "{{user `contentDir`}}/desktop/",
"type": "file"
},
{
"destination": "/home/nokov/Pictures",
"source": "{{user `contentDir`}}/pictures/",
"type": "file"
},
{
"destination": "/home/nokov/{{user `gccFile`}}",
"source": "{{user `contentDir`}}/{{user `gccFile`}}",
"type": "file"
},
{
"destination": "/home/nokov/{{user `eclipseFile`}}",
"source": "{{user `contentDir`}}/{{user `eclipseFile`}}",
"type": "file"
},
{
"destination": "/home/nokov/{{user `eclipsePrj`}}",
"source": "{{user `contentDir`}}/{{user `eclipsePrj`}}",
"type": "file"
},
{
"destination": "/home/nokov/{{user `openocd`}}",
"source": "{{user `contentDir`}}/{{user `openocd`}}",
"type": "file"
},
{
"execute_command": "echo '{{user `password`}}' | {{ .Vars }} sudo -E -S sh '{{ .Path }}'",
"script": "provision.sh",
"type": "shell"
}
],
"variables": {
"contentDir": "contentForVM",
"password": "nokovflie",
"user": "nokov",
"vm-name": "NokovVM"
}
}