forked from sous-chefs/confluence
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
59 lines (51 loc) · 1.56 KB
/
Vagrantfile
File metadata and controls
59 lines (51 loc) · 1.56 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
# Base hostname
cookbook = 'confluence'
Vagrant.configure('2') do |config|
config.berkshelf.enabled = true
config.cache.auto_detect = true
config.omnibus.chef_version = :latest
config.vm.define :centos6 do |centos6|
centos6.vm.box = 'chef/centos-6.6'
centos6.vm.hostname = "#{cookbook}-centos-6"
end
config.vm.define :centos7 do |centos6|
centos7.vm.box = 'chef/centos-7.1'
centos7.vm.hostname = "#{cookbook}-centos-7"
end
config.vm.define :ubuntu1204 do |ubuntu1204|
ubuntu1204.vm.box = 'chef/ubuntu-12.04'
ubuntu1204.vm.hostname = "#{cookbook}-ubuntu-1204"
end
config.vm.define :ubuntu1404 do |ubuntu1304|
ubuntu1304.vm.box = 'chef/ubuntu-13.04'
ubuntu1304.vm.hostname = "#{cookbook}-ubuntu-1404"
end
config.vm.network :private_network, ip: '192.168.50.10'
config.vm.provider 'virtualbox' do |v|
v.customize ['modifyvm', :id, '--memory', 1024]
end
config.vm.provision :chef_zero do |chef|
chef.log_level = :debug
chef.json = {
'mysql' => {
'server_root_password' => 'iloverandompasswordsbutthiswilldo',
'server_repl_password' => 'iloverandompasswordsbutthiswilldo',
'server_debian_password' => 'iloverandompasswordsbutthiswilldo'
},
'postgresql' => {
'password' => {
'postgres' => 'iloverandompasswordsbutthiswilldo'
}
},
'confluence' => {
'database' => {
'type' => 'postgresql'
}
}
}
chef.run_list = [
'recipe[java]',
"recipe[#{cookbook}]"
]
end
end