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-200-provision-ansible.json
78 lines (78 loc) · 2.49 KB
/
ubuntu-200-provision-ansible.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
{
"builders": [
{
"boot_wait": "10s",
"guest_additions_mode": "disable",
"headless": "{{ user `headless` }}",
"name": "provision-ansible",
"output_directory": "builds/{{build_type}}/{{build_name}}/{{ user `ansible_playbook_suffix` }}/{{user `template`}}",
"post_shutdown_delay": "1m",
"shutdown_command": "echo '{{ user `ssh_password` }}'|sudo -S shutdown -P now",
"source_path": "builds/{{ user `source_path_builder` }}/{{ user `source_path_step` }}/{{ user `source_path_substep` }}/{{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": [
{
"destination": "/tmp/sqldeveloper-no-jre.zip",
"only": ["provision-ansible"],
"source": "{{ user `sql_developer_path` }}",
"type": "file"
},
{
"inline": "echo '{{ user `ssh_password` }}' | sudo -S -E chown -R vagrant:vagrant /home/vagrant",
"only": ["provision-ansible"],
"type": "shell"
},
{
"only": ["provision-ansible"],
"galaxy_file": "provisioning/ansible/requirements.yml",
"host_vars": "provisioning/ansible/host_vars",
"inventory_file": "provisioning/ansible/inventory",
"playbook_dir": "provisioning/ansible",
"playbook_file": "provisioning/ansible/open-development-environment-devbox-{{ user `ansible_playbook_suffix` }}.yml",
"type": "ansible-local"
}
],
"variables": {
"ansible_playbook_suffix": null,
"cpus": "4",
"disk_size": "40960",
"headless": "",
"memory": "4096",
"name": "ubuntu-17.10.1",
"source_path_builder": "virtualbox-ovf",
"source_path_step": "provision-ansible",
"source_path_substep": "",
"ssh_password": "vagrant",
"ssh_username": "vagrant",
"sql_developer_path": "provisioning/downloads/sqldeveloper-17.4.1.054.0712-no-jre.zip",
"template": "ubuntu-17.10-amd64",
"vm_name": "open-development-environment-devbox-build"
}
}