-
Notifications
You must be signed in to change notification settings - Fork 2
/
Vagrantfile
48 lines (33 loc) · 1.11 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = '2'
Vagrant.require_version '>= 1.5.0'
unless Vagrant.has_plugin?('vagrant-omnibus')
raise 'vagrant-omnibus is not installed!'
end
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.hostname = 'cloudstack-berkshelf'
config.vm.box = 'chef/centos-6.5'
config.omnibus.chef_version = :latest
# Port forward Tomcat
config.vm.network 'forwarded_port', guest: 8080, host: 8080
config.vm.network :private_network, :auto_config => true, :ip => '192.168.56.5'
if Vagrant.has_plugin?('vagrant-cachier')
config.cache.scope = :box
config.cache.auto_detect = true
config.omnibus.cache_packages = true
end
config.berkshelf.berksfile_path = './Berksfile'
config.berkshelf.enabled = true
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = ['cookbooks']
chef.run_list = [
'recipe[nat-router]',
'recipe[cloudstack::management-server]'
]
chef.arguments = '-l debug'
config.vm.provider :virtualbox do |vb|
vb.customize ['modifyvm', :id, '--memory', '2048']
end
end
end