This repository has been archived by the owner on Jun 12, 2024. It is now read-only.
forked from RiotGames-Archive/zabbix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
76 lines (65 loc) · 1.92 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
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"
config.vm.network :private_network, ip: "192.168.50.10"
config.ssh.max_tries = 40
config.ssh.timeout = 120
config.vm.provision :shell, :inline => "sudo /opt/chef/embedded/bin/gem install chef -v 10.24.0"
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' => ['127.0.0.1'],
'servers_active' => ['127.0.0.1']
},
'web' => {
'install_method' => 'apache',
},
'server' => {
'install' => true,
'ipaddress' => '127.0.0.1',
},
'database' => {
#'dbport' => '5432',
#'install_method' => 'postgres',
'dbpassword' => 'password123'
}
}
}
chef.run_list = [
"recipe[yum::epel]",
"recipe[zabbix::default]",
"recipe[database::mysql]",
"recipe[mysql::server]",
#"recipe[database::postgresql]",
#"recipe[postgresql::server]",
"recipe[zabbix::database]",
"recipe[mysql::client]",
#"recipe[postgresql::client]",
"recipe[zabbix::server]",
#"recipe[php-fpm]",
#"recipe[nginx]",
"recipe[apache2]",
"recipe[apache2::mod_php5]",
"recipe[zabbix::web]",
"recipe[zabbix::agent_registration]"
]
end
end