forked from bflad/chef-jira
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
62 lines (59 loc) · 1.73 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
# Base hostname
cookbook = 'jira'
Vagrant.configure('2') do |config|
if Vagrant.has_plugin?("vagrant-cachier")
config.cache.auto_detect = true
end
config.vm.network "forwarded_port", guest: 8080, host: 4000
config.omnibus.chef_version = :latest
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.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
}
},
:jira => {
:install_type => :war,
:version => "6.2",
:database => {
:type => :postgresql,
:host => :localhost,
:name => :jira,
:user => :jira,
:port => 5432
}
},
:postgresql => {
:password => {
:postgres => :postgres
},
:config => {
:ssl => false
},
:version => 9.3
},
:tomcat => {
:java_options => '-XX:MaxPermSize=256M -Xmx768M -Djava.awt.headless=true',
:keystore_password => 'iloverandompasswordsbutthiswilldo',
:truststore_password => 'iloverandompasswordsbutthiswilldo'
}
}
chef.run_list = [
'recipe[java]',
'recipe[tomcat]',
"recipe[#{cookbook}]"
]
end
config.vm.provision :shell, path: "./after_startup_scripts/after_jira_load.sh"
end