-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
69 lines (63 loc) · 1.6 KB
/
Vagrantfile
File metadata and controls
69 lines (63 loc) · 1.6 KB
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "1024"]
vb.name = "ruby-devbox"
end
config.vm.network :forwarded_port, guest: 3000, host: 3000
config.vm.hostname = "ruby-devbox"
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = "cookbooks"
chef.add_recipe "apt"
chef.add_recipe "nodejs"
chef.add_recipe "build-essential::default"
chef.add_recipe "ruby_build"
chef.add_recipe "rbenv::user"
chef.add_recipe "rbenv::vagrant"
chef.add_recipe 'postgresql::server'
chef.add_recipe 'postgresql::libpq'
chef.json = {
rbenv: {
user_installs: [{
user: 'vagrant',
rubies: ["2.2.1"],
global: "2.2.1",
gems: {
"2.2.1" => [{
name:"bundler"
}]
}
}]
},
postgresql: {
version:"9.3",
port:"5432",
listen_addresses:"*",
pg_hba: [
{
type: "host",
db: "all",
user: "vagrant",
addr: "127.0.0.1/32",
method: "trust" }
],
users: [
{
username: "vagrant",
password: "",
superuser: true,
replication: false,
createdb: true,
createrole: false,
inherit: true,
replication: false,
login: true
}
]
}
}
end
end