-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathVagrantfile
82 lines (74 loc) · 1.76 KB
/
Vagrantfile
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = '2'
Vagrant.require_version '>= 1.5.0'
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = 'ubuntu/trusty32'
config.vm.network "private_network", ip: "192.168.33.10"
config.vm.network "forwarded_port", guest: 3000, host: 3000
config.vm.hostname = "enpit"
config.omnibus.chef_version = :latest
config.berkshelf.enabled = true
config.vm.provision :chef_solo do |chef|
chef.json = {
rbenv: {
user_installs: [{
user: "vagrant",
rubies: ["2.2.5", "1.9.3-p551"],
global: "2.2.5",
}]
},
emacs: {
package: ["emacs24"]
},
locale: {
lang: "ja_JP.utf8",
lc_all: "ja_JP.utf8",
},
postgresql: {
users: [
{
username: "vagrant",
password: "vagrant",
superuser: true,
createdb: true,
login: true
}
],
databases: [
{
name: "vagrant",
owner: "vagrant",
template: "template0",
encoding: "UTF-8",
locale: "ja_JP.utf-8",
extensions: "hstore"
}
]
}
}
chef.run_list =
[
"enpit",
"apt",
"locale",
"git",
"zsh",
"enpit::emacs24",
"vim",
"postgresql",
"postgresql::server",
"postgresql::client",
"postgresql::libpq",
"ruby_build", # an rbenv plugin
"ruby_rbenv::user",
"heroku-toolbelt",
"enpit::github-connect",
"enpit::generate_rails",
"enpit::bash_profile",
"enpit::gemrc",
"enpit::gitconfig",
"enpit::hub",
]
end
end