forked from elijah/chef_jira
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
107 lines (91 loc) · 4.13 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
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
# Base hostname
cookbook = 'jira'
Vagrant.configure('2') do |config|
config.berkshelf.enabled = true
config.cache.auto_detect = true
config.omnibus.chef_version = :latest
config.vm.define :centos5 do |centos5|
centos5.vm.box = 'opscode-centos-5.10'
centos5.vm.box_url = 'http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_centos-5.10_chef-provisionerless.box'
centos5.vm.hostname = "#{cookbook}-centos-5"
end
config.vm.define :centos6 do |centos6|
centos6.vm.box = 'opscode-centos-6.5'
centos6.vm.box_url = 'http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_centos-6.5_chef-provisionerless.box'
centos6.vm.hostname = "#{cookbook}-centos-6"
end
config.vm.define :debian7 do |debian7|
debian7.vm.box = 'opscode-debian-7.2.0'
debian7.vm.box_url = 'http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_debian-7.2.0_chef-provisionerless.box'
debian7.vm.hostname = "#{cookbook}-debian-7"
end
config.vm.define :fedora18 do |fedora18|
fedora18.vm.box = 'opscode-fedora-18'
fedora18.vm.box_url = 'http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_fedora-18_chef-provisionerless.box'
fedora18.vm.hostname = "#{cookbook}-fedora-18"
end
config.vm.define :fedora19 do |fedora19|
fedora19.vm.box = 'opscode-fedora-19'
fedora19.vm.box_url = 'http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_fedora-19_chef-provisionerless.box'
fedora19.vm.hostname = "#{cookbook}-fedora-19"
end
config.vm.define :fedora20 do |fedora20|
fedora20.vm.box = 'opscode-fedora-20'
fedora20.vm.box_url = 'http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_fedora-20_chef-provisionerless.box'
fedora20.vm.hostname = "#{cookbook}-fedora-20"
end
config.vm.define :freebsd9 do |freebsd9|
freebsd9.vm.box = 'opscode-freebsd-9.2'
freebsd9.vm.box_url = 'http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_freebsd-9.2_chef-provisionerless.box'
freebsd9.vm.hostname = "#{cookbook}-freebsd-9"
end
config.vm.define :ubuntu1204 do |ubuntu1204|
ubuntu1204.vm.box = 'opscode-ubuntu-12.04'
ubuntu1204.vm.box_url = 'http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_ubuntu-12.04_chef-provisionerless.box'
ubuntu1204.vm.hostname = "#{cookbook}-ubuntu-1204"
end
config.vm.define :ubuntu1210 do |ubuntu1210|
ubuntu1210.vm.box = 'opscode-ubuntu-12.10'
ubuntu1210.vm.box_url = 'http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_ubuntu-12.10_chef-provisionerless.box'
ubuntu1210.vm.hostname = "#{cookbook}-ubuntu-1210"
end
config.vm.define :ubuntu1304 do |ubuntu1304|
ubuntu1304.vm.box = 'opscode-ubuntu-13.04'
ubuntu1304.vm.box_url = 'http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_ubuntu-13.04_chef-provisionerless.box'
ubuntu1304.vm.hostname = "#{cookbook}-ubuntu-1304"
end
config.vm.define :ubuntu1310 do |ubuntu1310|
ubuntu1310.vm.box = 'opscode-ubuntu-13.10'
ubuntu1310.vm.box_url = 'http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_ubuntu-13.10_chef-provisionerless.box'
ubuntu1310.vm.hostname = "#{cookbook}-ubuntu-1310"
end
config.vm.network :private_network, ip: '192.168.50.10'
config.vm.provider 'virtualbox' do |v|
v.customize ['modifyvm', :id, '--memory', 2048]
end
config.vm.provision :chef_solo do |chef|
chef.log_level = :debug
chef.json = {
'java' => {
'install_flavor' => 'oracle',
'oracle' => {
'accept_oracle_download_terms' => true
}
},
'mysql' => {
'bind_address' => '0.0.0.0',
'server_root_password' => 'iloverandompasswordsbutthiswilldo',
'server_repl_password' => 'iloverandompasswordsbutthiswilldo',
'server_debian_password' => 'iloverandompasswordsbutthiswilldo'
},
'tomcat' => {
'java_options' => '-XX:MaxPermSize=256M -Xmx768M -Djava.awt.headless=true'
}
}
chef.run_list = [
'recipe[java]',
'recipe[tomcat]',
"recipe[#{cookbook}]"
]
end
end