-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
47 lines (36 loc) · 1.14 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/bionic64"
config.vm.provider "virtualbox" do |vb|
vb.memory = "1024"
vb.customize ["modifyvm", :id, "--audio", "none"]
end
config.vm.define "master" do |c|
c.vm.hostname = "master"
c.vm.network "private_network", ip: "172.16.0.10"
c.vm.provider "virtualbox" do |vb|
vb.memory = "2048"
end
end
(0..1).each do |n|
config.vm.define "worker-#{n}" do |c|
c.vm.hostname = "worker-#{n}"
c.vm.network "private_network", ip: "172.16.1.1#{n}"
end
end
config.vm.define "monitoring" do |c|
c.vm.hostname = "monitoring"
c.vm.network "private_network", ip: "172.16.1.12"
end
config.vm.define 'controller' do |machine|
machine.vm.network "private_network", ip: "172.16.2.10"
machine.vm.provision :ansible_local do |ansible|
ansible.playbook = "/vagrant/ansible/main.yml"
ansible.install = true
ansible.limit = "all"
ansible.verbose = true
ansible.inventory_path = "/vagrant/ansible/inventory"
end
end
end