-
Notifications
You must be signed in to change notification settings - Fork 2
/
elixir-phoenix-centos7.json
executable file
·139 lines (139 loc) · 4.05 KB
/
elixir-phoenix-centos7.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
{
"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-centos7](https://github.com/pgrunwald/packer-elixir-phoenix-centos7)",
"vm_name": "elixir-phoenix-centos-7-x86_64",
"atlas_artifact": "pgrunwald/elixir-phoenix-centos7"
},
"provisioners": [
{
"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/packer-rhel",
"ansible/roles/postgresql",
"ansible/roles/nodejs",
"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": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks.cfg<enter><wait>"
],
"boot_wait": "10s",
"disk_size": 8192,
"guest_os_type": "RedHat_64",
"headless": true,
"http_directory": "http",
"iso_urls": [
"CentOS-7-x86_64-Minimal-1511.iso",
"http://centos.mirrors.hoobly.com/7/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso"
],
"iso_checksum_type": "md5",
"iso_checksum": "88c0437f0a14c6e2c94426df9d43cd67",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"shutdown_command": "echo 'vagrant'|sudo -S /sbin/halt -h -p",
"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": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks.cfg<enter><wait>"
],
"boot_wait": "10s",
"disk_size": 8192,
"guest_os_type": "centos-64",
"headless": true,
"http_directory": "http",
"iso_urls": [
"CentOS-7-x86_64-Minimal-1511.iso",
"http://centos.mirrors.hoobly.com/7/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso"
],
"iso_checksum_type": "md5",
"iso_checksum": "88c0437f0a14c6e2c94426df9d43cd67",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"shutdown_command": "echo 'vagrant'|sudo -S /sbin/halt -h -p",
"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` }}"
}
}
]
]
}