-
Notifications
You must be signed in to change notification settings - Fork 10
/
Vagrantfile
35 lines (26 loc) · 901 Bytes
/
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
require 'berkshelf/vagrant'
Vagrant::Config.run do |config|
config.vm.host_name = "icinga-berkshelf"
config.vm.box = "opscode-ubuntu-12.04"
config.vm.box_url = "https://opscode-vm.s3.amazonaws.com/vagrant/boxes/opscode-ubuntu-12.04.box"
config.vm.customize ["modifyvm", :id, "--memory", "512"]
config.vm.network :hostonly, "33.33.33.11"
config.vm.forward_port 80, 8080
config.vm.share_folder("v-root", "/vagrant", ".")
config.vm.provision :shell, :inline => "sudo aptitude update"
config.ssh.max_tries = 40
config.ssh.timeout = 120
config.vm.provision :chef_solo do |chef|
chef.json = {
:www_root => '/vagrant/public',
:mysql => {
:server_root_password => "rootpass",
:server_repl_password => "replpass",
:server_debian_password => "debpass"
},
}
chef.run_list = [
"recipe[icinga::core_source]"
]
end
end