-
Notifications
You must be signed in to change notification settings - Fork 3
/
elixir-phoenix-ubuntu-trusty64.json
executable file
·163 lines (163 loc) · 4.69 KB
/
elixir-phoenix-ubuntu-trusty64.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
{
"variables": {
"box_version": "1.3.4",
"box_description": "PostgreSQL admin user/pass: postgres/postgres.\n\nIncludes Erlang 19.0, Elixir 1.3.4, PostgreSQL 9.4, Node.js 5.x and Git.\n\n Github: [pgrunwald/packer-elixir-phoenix-ubuntu-trusty64](https://github.com/pgrunwald/packer-elixir-phoenix-ubuntu-trusty64)",
"vm_name": "elixir-phoenix-ubuntu-1404-trusty-x86_64",
"atlas_artifact": "pgrunwald/elixir-phoenix-ubuntu-trusty64"
},
"provisioners": [
{
"type": "shell",
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"script": "scripts/setup.sh"
},
{
"type": "shell",
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"script": "scripts/ansible.sh"
},
{
"type": "ansible-local",
"playbook_file": "ansible/main.yml",
"role_paths": [
"ansible/roles/elixir",
"ansible/roles/nfs",
"ansible/roles/nodejs",
"ansible/roles/packer-debian",
"ansible/roles/postgresql",
"ansible/roles/git",
"ansible/roles/inotify-tools"
]
},
{
"type": "shell",
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"script": "scripts/cleanup.sh"
}
],
"builders": [
{
"type": "virtualbox-iso",
"boot_command": [
"<esc><wait>",
"<esc><wait>",
"<enter><wait>",
"/install/vmlinuz",
" auto=true",
" priority=critical",
" initrd=/install/initrd.gz",
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg",
" -- ",
"<enter>"
],
"boot_wait": "10s",
"disk_size": 8192,
"guest_os_type": "Ubuntu_64",
"headless": true,
"http_directory": "http",
"iso_urls": [
"iso/ubuntu-14.04.4-server-amd64.iso",
"http://releases.ubuntu.com/14.04/ubuntu-14.04.4-server-amd64.iso"
],
"iso_checksum_type": "md5",
"iso_checksum": "2ac1f3e0de626e54d05065d6f549fa3a",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now",
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
"virtualbox_version_file": ".vbox_version",
"vm_name": "{{ user `vm_name` }}",
"vboxmanage": [
[
"modifyvm",
"{{.Name}}",
"--memory",
"2048"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"1"
]
]
},
{
"type": "vmware-iso",
"boot_command": [
"<esc><wait>",
"<esc><wait>",
"<enter><wait>",
"/install/vmlinuz",
" auto=true",
" priority=critical",
" initrd=/install/initrd.gz",
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg",
" -- ",
"<enter>"
],
"boot_wait": "10s",
"disk_size": 8192,
"guest_os_type": "ubuntu-64",
"headless": true,
"http_directory": "http",
"iso_urls": [
"iso/ubuntu-14.04.4-server-amd64.iso",
"http://releases.ubuntu.com/14.04/ubuntu-14.04.4-server-amd64.iso"
],
"iso_checksum_type": "md5",
"iso_checksum": "2ac1f3e0de626e54d05065d6f549fa3a",
"output_directory": "packer-ubuntu-14.04-amd64-vmware",
"shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_username": "vagrant",
"ssh_wait_timeout": "10000s",
"tools_upload_flavor": "linux",
"vm_name": "{{ user `vm_name` }}",
"vmx_data": {
"cpuid.coresPerSocket": "1",
"memsize": "2048",
"numvcpus": "1"
}
}
],
"post-processors": [
[
{
"type": "vagrant",
"keep_input_artifact": false
},
{
"type": "atlas",
"only": [
"virtualbox-iso"
],
"artifact": "{{ user `atlas_artifact` }}",
"artifact_type": "vagrant.box",
"metadata": {
"provider": "virtualbox",
"created_at": "{{ timestamp }}",
"version": "{{ user `box_version` }}",
"description": "{{ user `box_description` }}"
}
},
{
"type": "atlas",
"only": [
"vmware-iso"
],
"artifact": "{{ user `atlas_artifact` }}",
"artifact_type": "vagrant.box",
"metadata": {
"provider": "vmware_desktop",
"created_at": "{{ timestamp }}",
"version": "{{ user `box_version` }}",
"description": "{{ user `box_description` }}"
}
}
]
]
}