-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.json
96 lines (82 loc) · 3.83 KB
/
template.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
{
"_comment": "My condolences for all the copy-pasting in this file..",
"variables": {
"cpus": "2",
"memory_mb": "4096",
"vbox_videomem_mb": "256",
"vmware_videomem_kb": "786432"
},
"builders": [{
"type": "virtualbox-iso",
"guest_os_type": "Ubuntu_64",
"iso_url": "http://releases.ubuntu.com/18.04/ubuntu-18.04.5-desktop-amd64.iso",
"iso_checksum_url": "http://releases.ubuntu.com/18.04/SHA256SUMS",
"iso_checksum_type": "sha256",
"vboxmanage": [
["modifyvm", "{{.Name}}",
"--cpus", "{{user `cpus`}}",
"--memory", "{{user `memory_mb`}}",
"--vram", "{{user `vbox_videomem_mb`}}"]
],
"boot_wait": "5s",
"boot_command": [
"<bs><wait><bs><wait><bs><wait><bs><wait><bs><wait><enter><wait>",
"<f6><wait><enter><wait><esc><wait>",
"<down><wait>",
"time/zone=Europe/Paris<spacebar><wait>",
"<enter>",
"<wait10><wait10>",
"<wait10><tab><wait><enter><wait10>",
"<tab><wait><tab><wait><tab><wait><tab><wait><tab><wait><tab><wait><enter><wait10>",
"<tab><wait><spacebar><tab><wait><tab><wait><tab><wait><tab><wait><enter><wait10>",
"<tab><wait><tab><wait><tab><wait><tab><wait><tab><wait><enter><wait10>",
"<tab><wait><enter><wait10><wait10>",
"<tab><wait><tab><wait><enter><wait10>",
"Vagrant<tab><wait>works<wait>tation<wait>-cm<wait><tab><wait><tab><wait>vagrant<tab><wait>vagrant<tab><wait><up><wait><tab><wait><tab><wait><enter>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"<enter><wait10><enter>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"<leftCtrlOn><leftAltOn>t<leftAltOff><leftCtrlOff><wait10><wait10><wait10>",
"sudo<wait><spacebar><wait>-s<enter><wait>vagrant<wait><enter><wait10>",
"rm<wait><spacebar><wait>-Rf<wait><spacebar><wait>/etc<wait>/systemd<wait>/system<wait>/apt-*<wait><enter><wait10>",
"reboot<wait><enter>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"<leftCtrlOn><leftAltOn>t<leftAltOff><leftCtrlOff><wait10>",
"sudo<wait><spacebar><wait>-s<enter><wait>vagrant<wait><enter><wait10>",
"apt-get<wait><spacebar><wait>install<wait><spacebar><wait>-y<spacebar><wait>openssh<wait>-server<wait><enter>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
""
],
"ssh_timeout": "20m",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"shutdown_command": "echo 'vagrant' | sudo -S shutdown -P now"
}],
"provisioners": [{
"type": "shell",
"only": ["virtualbox-iso"],
"script": "vbox/provision.sh",
"execute_command": "echo 'vagrant' | sudo -S sh -c '{{ .Vars }} {{ .Path }}'" },{
"type": "shell",
"script": "provision.sh",
"execute_command": "echo 'vagrant' | sudo -S sh -c '{{ .Vars }} {{ .Path }}'" }],
"post-processors": [[{
"type": "vagrant",
"keep_input_artifact": true,
"override": {
"virtualbox": {"vagrantfile_template": "vbox/Vagrantfile"}
}
}, {
"type": "vagrant-cloud",
"box_tag": "sporniket/workstation-cm",
"version": "0.10.0",
"no_release": "true",
"version_description": "Edit me before release"
}]]
}