forked from jonhadfield/ansible-playbook-sensu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
31 lines (27 loc) · 886 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
Vagrant.configure("2") do |config|
config.vm.provision 'ansible' do |ansible|
ansible.playbook = 'vagrant/site.yml'
ansible.sudo = true
ansible.host_key_checking = false
ansible.groups = {
"sensu_server_client" => ["sensu-server-client"],
"sensu_server" => ["sensu-server"],
"sensu_client" => ["sensu-client"]
}
end
config.vm.define 'sensu-server-client' do |a|
a.vm.box = "deb/jessie"
a.vm.network :private_network, ip: "192.168.60.2"
a.vm.hostname = 'sensu-server-client'
end
config.vm.define 'sensu-server' do |a|
a.vm.box = "deb/jessie"
a.vm.network :private_network, ip: "192.168.60.3"
a.vm.hostname = 'sensu-server'
end
config.vm.define 'sensu-client' do |a|
a.vm.box = "deb/jessie"
a.vm.network :private_network, ip: "192.168.60.4"
a.vm.hostname = 'sensu-client'
end
end