-
Notifications
You must be signed in to change notification settings - Fork 13
/
ros_ide_vm.json
76 lines (70 loc) · 1.99 KB
/
ros_ide_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
{
"variables": {
"user": "clover",
"password": "clover",
"vm-name": "clover-devel",
"scriptsDir": "scripts",
"assetsDir": "assets"
},
"builders": [{
"type": "virtualbox-ovf",
"vm_name": "{{user `vm-name`}}",
"source_path": "output-virtualbox-iso/{{user `vm-name`}}.ova",
"format": "ova",
"guest_additions_mode": "disable",
"headless": "false",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "6144", "--vram", "128", "--mouse", "usbtablet", "--rtcuseutc", "on", "--nictype1", "virtio"],
["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",
"vboxmanage_post": [
["modifyvm", "{{.Name}}", "--memory", "2048"]
],
"export_opts": [
"--ovf10",
"--manifest"
]
}],
"provisioners": [{
"type": "file",
"source": "{{user `assetsDir`}}/background/",
"destination": "/home/{{user `user`}}/Pictures"
},
{
"type": "file",
"source": "{{user `assetsDir`}}/pictures/",
"destination": "/home/{{user `user`}}/Pictures"
},
{
"type": "file",
"source": "{{user `assetsDir`}}/desktop/",
"destination": "/home/{{user `user`}}/Desktop"
},
{
"type": "file",
"source": "{{user `assetsDir`}}/packages",
"destination": "/tmp"
},
{
"type": "file",
"source": "{{user `assetsDir`}}/patches",
"destination": "/tmp"
},
{
"type": "file",
"source": "{{user `assetsDir`}}/clover_vm_version",
"destination": "/tmp/clover_vm_version"
},
{
"type": "shell",
"script": "scripts/install_software.sh",
"execute_command": "PASSWORD='{{user `password`}}' bash '{{.Path}}'"
}]
}