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-400-vagrant-cloud-upload.json
85 lines (85 loc) · 2.42 KB
/
ubuntu-400-vagrant-cloud-upload.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
{
"builders": [
{
"boot_wait": "10s",
"guest_additions_mode": "disable",
"headless": "{{ user `headless` }}",
"name": "vagrant-cloud-upload",
"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-cloud-upload"],
"output": "builds/vagrant-cloud/{{user `template`}}.{{.Provider}}.box",
"type": "vagrant"
},
{
"box_tag": "ferrarimarco/open-development-environment-devbox",
"only": ["vagrant-cloud-upload"],
"type": "vagrant-cloud",
"version": "{{user `version`}}",
"version_description": "[ferrarimarco/open-development-environment-devbox](https://github.com/ferrarimarco/open-development-environment-devbox)"
}
]
],
"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",
"version": "1.3.0",
"vm_name": "open-development-environment-devbox-build",
"zeroing": "true"
}
}