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-201-upgrade.json
64 lines (64 loc) · 1.76 KB
/
ubuntu-201-upgrade.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
{
"builders": [
{
"boot_wait": "10s",
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
"headless": "{{ user `headless` }}",
"name": "upgrade",
"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/provision-ansible/600-general-development-tools/{{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` }}"
}
],
"provisioners": [
{
"environment_vars": [
"HOME_DIR=/home/vagrant"
],
"execute_command": "echo '{{ user `ssh_password` }}' | {{.Vars}} sudo -S -E sh -eux '{{.Path}}'",
"scripts": [
"provisioning/scripts/guest-additions.sh",
"provisioning/scripts/upgrade.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"
}
}