This repository has been archived by the owner on Dec 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
ubuntu-300-vagrant-box.json
77 lines (77 loc) · 2.03 KB
/
ubuntu-300-vagrant-box.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
{
"builders": [
{
"boot_wait": "10s",
"guest_additions_mode": "disable",
"headless": "{{ user `headless` }}",
"name": "vagrant-box",
"output_directory": "builds/{{build_type}}/{{build_name}}/{{user `template`}}",
"post_shutdown_delay": "1m",
"shutdown_command": "echo '{{ user `ssh_password` }}'|sudo -S shutdown -P now",
"source_path": "builds/virtualbox-ovf/upgrade/{{user `template`}}/{{user `vm_name`}}.ovf",
"ssh_password": "{{ user `ssh_password` }}",
"ssh_port": 22,
"ssh_username": "{{ user `ssh_username` }}",
"ssh_wait_timeout": "10000s",
"type": "virtualbox-ovf",
"vboxmanage": [
[
"modifyvm",
"{{.Name}}",
"--cpus",
"{{ user `cpus` }}"
],
[
"modifyvm",
"{{.Name}}",
"--memory",
"{{ user `memory` }}"
],
[
"modifyvm",
"{{.Name}}",
"--nictype1",
"virtio"
]
],
"vm_name": "{{ user `vm_name` }}"
}
],
"post-processors": [
[
{
"keep_input_artifact": true,
"only": ["vagrant-box"],
"output": "builds/vagrant/{{user `template`}}.{{.Provider}}.box",
"type": "vagrant"
}
]
],
"provisioners": [
{
"environment_vars": [
"SSH_USERNAME={{user `ssh_username`}}",
"SSH_PASSWORD={{user `ssh_password`}}",
"HOME_DIR=/home/$SSH_USERNAME",
"ZEROING={{user `zeroing`}}"
],
"execute_command": "echo '{{ user `ssh_password` }}' | {{.Vars}} sudo -S -E sh -eux '{{.Path}}'",
"scripts": [
"provisioning/scripts/cleanup.sh"
],
"type": "shell"
}
],
"variables": {
"cpus": "4",
"disk_size": "40960",
"headless": "",
"memory": "4096",
"name": "ubuntu-17.10.1",
"ssh_password": "vagrant",
"ssh_username": "vagrant",
"template": "ubuntu-17.10-amd64",
"vm_name": "open-development-environment-devbox-build",
"zeroing": "true"
}
}