forked from laradji/zabbix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
64 lines (57 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
63
64
# -*- mode: ruby -*-
# vi: set ft=ruby :
# This Vagrantfile needs the vagrant-omnbius plugin installed
# To install this, run "vagrant plugin install vagrant-omnibus"
Vagrant.configure("2") do |config|
config.vm.provider :virtualbox do |vbox|
vbox.customize ['modifyvm', :id,
'--memory', 1024]
end
config.vm.box = "Berkshelf-CentOS-6.3-x86_64-minimal"
config.vm.box_url = "https://dl.dropbox.com/u/31081437/Berkshelf-CentOS-6.3-x86_64-minimal.box"
config.vm.hostname = "zabbix-berkshelf"
server_ip = "192.168.50.10"
config.vm.network :private_network, ip: server_ip
config.omnibus.chef_version = "11.6.2"
config.vm.provision :chef_solo do |chef|
chef.json = {
:mysql => {
:server_root_password => 'rootpass',
:server_debian_password => 'debpass',
:server_repl_password => 'replpass'
},
'postgresql' => {
'password' => {
'postgres' => 'rootpass'
}
},
'zabbix' => {
'agent' => {
'servers' => [server_ip],
'servers_active' => [server_ip]
},
'web' => {
'install_method' => 'apache',
'fqdn' => server_ip
},
'server' => {
'install' => true,
'ipaddress' => server_ip
},
'database' => {
#'dbport' => '5432',
#'install_method' => 'postgres',
'dbpassword' => 'password123'
}
}
}
chef.add_recipe "database::mysql"
chef.add_recipe "mysql::server"
chef.add_recipe "zabbix"
chef.add_recipe "zabbix::database"
chef.add_recipe "zabbix::server"
chef.add_recipe "zabbix::web"
chef.add_recipe "zabbix::agent_registration"
#chef.log_level = :debug
end
end