-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
006.traefik.Vagrantfile
72 lines (61 loc) · 2.22 KB
/
006.traefik.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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "boxcutter/ubuntu1604"
config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.define "loadgen", primary: true do |loadgen|
loadgen.vm.provider "virtualbox" do |vb|
vb.memory = 2048
vb.cpus = 2
end
loadgen.vm.hostname = "loadgen"
loadgen.vm.network "private_network", ip: "172.16.0.2"
loadgen.vm.synced_folder "external/salt", "/srv/salt", type: "rsync"
loadgen.vm.synced_folder "external/pillar", "/srv/pillar", type: "rsync"
loadgen.vm.synced_folder ".", "/home/vagrant/go/src/github.com/loadimpact/k6", type: "rsync"
loadgen.vm.provision :salt do |salt|
salt.bootstrap_options = "-F -c /tmp -i loadgen"
salt.grains_config = "external/vagrant/loadgen_grains.yml"
salt.minion_config = "external/vagrant/salt_minion.yml"
salt.minion_key = "external/vagrant/loadgen.pem"
salt.minion_pub = "external/vagrant/loadgen.pub"
salt.install_master = true
salt.master_config = "external/vagrant/salt_master.yml"
salt.seed_master = {
loadgen: "external/vagrant/loadgen.pub",
influx: "external/vagrant/influx.pub",
web: "external/vagrant/web.pub",
}
end
end
config.vm.define "influx" do |influx|
influx.vm.provider "virtualbox" do |vb|
vb.memory = 2048
vb.cpus = 2
end
influx.vm.hostname = "influx"
influx.vm.network "private_network", ip: "172.16.0.3"
influx.vm.provision :salt do |salt|
salt.bootstrap_options = "-F -c /tmp -i influx"
salt.grains_config = "external/vagrant/influx_grains.yml"
salt.minion_config = "external/vagrant/salt_minion.yml"
salt.minion_key = "external/vagrant/influx.pem"
salt.minion_pub = "external/vagrant/influx.pub"
end
end
config.vm.define "web" do |web|
web.vm.provider "virtualbox" do |vb|
vb.memory = 2048
vb.cpus = 2
end
web.vm.hostname = "web"
web.vm.network "private_network", ip: "172.16.0.4"
web.vm.provision :salt do |salt|
salt.bootstrap_options = "-F -c /tmp -i web"
salt.grains_config = "external/vagrant/web_grains.yml"
salt.minion_config = "external/vagrant/salt_minion.yml"
salt.minion_key = "external/vagrant/web.pem"
salt.minion_pub = "external/vagrant/web.pub"
end
end
end