forked from team-lab/openfire-chef
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
51 lines (39 loc) · 1.25 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
require 'berkshelf/vagrant'
Vagrant::Config.run do |config|
config.vm.host_name = "openfire-berkshelf"
config.vm.box = "Berkshelf-CentOS-6.3-x86_64-minimal"
config.vm.box_url = "https://dl.dropbox.com/u/31081437/Berkshelf-CentOS-6.3-x86_64-minimal.box"
config.vm.network :hostonly, "33.33.33.2"
config.ssh.max_tries = 40
config.ssh.timeout = 120
# track all VM changes with git
config.vm.provision :shell, :path => 'Vagrantprovisioners/git_pre.sh'
# install ldap utils for debugging purposes
config.vm.provision :shell, :path => 'Vagrantprovisioners/ldap.sh'
# install "comfort" packages
config.vm.provision :shell, :path => 'Vagrantprovisioners/comfort.sh'
config.vm.provision :chef_solo do |chef|
chef.json = {
:java => {
:jdk_version => '7',
},
:openfire => {
:database => {
:type => 'postgresql',
:password => 'foobar'
}
},
:postgresql => {
:password => {
:postgres => 'bazfaz'
}
}
}
chef.run_list = [
"recipe[openfire::default]"
]
chef.log_level = :info
end
# unconditionally check everything in to git
config.vm.provision :shell, :path => 'Vagrantprovisioners/git.sh'
end