forked from mantl/mantl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
42 lines (37 loc) · 1.39 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "CiscoCloud/shipped-devbox"
config.vm.network :forwarded_port, guest: 2181, host: 2181 # ZooKeeper
config.vm.network :forwarded_port, guest: 5050, host: 5050 # Mesos leader
config.vm.network :forwarded_port, guest: 5051, host: 5051 # Mesos follower
config.vm.network :forwarded_port, guest: 8080, host: 8080 # Marathon
config.vm.network :forwarded_port, guest: 8500, host: 8500 # Consul
config.vm.network :forwarded_port, guest: 8600, host: 8600 # Consul DNS
# Mesos task ports
for i in 31000..32000
config.vm.network :forwarded_port, guest: i, host: i
end
config.vm.provision "ansible" do |ansible|
ansible.extra_vars = { ansible_ssh_user: 'vagrant' }
ansible.playbook = "vagrant.yml"
ansible.groups = {
"consul_servers" => ["default"],
"mesos_leaders" => ["default"],
"vagrant" => ["default"],
"zookeeper_servers" => ["default"]
}
ansible.extra_vars = {
"consul_gossip_key" => "ggVIrhEzqe7W/65YZ9fYFA==",
"consul_dc" => "vagrant",
"consul_bootstrap_expect" => 1,
"consul_retry_join" => 1,
"mesos_cluster" => "vagrant",
"mesos_mode" => "mixed",
}
end
config.vm.provider :virtualbox do |vb|
vb.customize ['modifyvm', :id, '--cpus', 1]
vb.customize ['modifyvm', :id, '--memory', 1024]
end
end