-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
40 lines (34 loc) · 1.05 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.require_version ">= 1.5.0"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
if Vagrant.has_plugin?("vagrant-cachier")
config.cache.scope = :box
end
config.vm.define 'collectd', primary: true do |app|
app.vm.hostname = "collectd.desarrollo.unlp.edu.ar"
app.omnibus.chef_version = "11.16.4"
app.vm.box = "chef/ubuntu-12.04"
app.vm.network :private_network, ip: "10.100.100.3"
app.berkshelf.enabled = true
app.vm.provision :chef_solo do |chef|
chef.json = {
mo_collectd: {
graphite: {
host: '10.100.100.2'
}
}
}
chef.run_list = [
"recipe[apt::default]",
"recipe[mo_mysql::standalone-server]",
"recipe[mo_collectd]",
"recipe[mo_collectd::plugin_postfix]",
"recipe[mo_collectd::plugin_mysql]",
"recipe[mo_collectd::plugin_php_fpm]",
]
end
end
end