Added swarm

This commit is contained in:
Guillem Hernandez Sola
2018-06-13 14:46:19 +02:00
parent 75f631d93f
commit bf79d66aa6
3 changed files with 81 additions and 0 deletions

20
swarm/Vagrantfile vendored Executable file
View File

@@ -0,0 +1,20 @@
Vagrant.configure(2) do |config|
config.vm.define "manager" do |manager|
manager.vm.box = "bento/ubuntu-18.04"
manager.vm.network "private_network", ip: "192.168.0.248"
manager.vm.hostname = "manager.example.com"
manager.vm.provision "shell", path: "docker_install.sh"
end
config.vm.define "agent1" do |agent1|
agent1.vm.box = "bento/ubuntu-18.04"
agent1.vm.network "private_network", ip: "192.168.0.247"
agent1.vm.hostname = "docker-agent1.example.com"
agent1.vm.provision "shell", path: "docker_install.sh"
end
config.vm.define "agent2" do |agent2|
agent2.vm.box = "bento/ubuntu-18.04"
agent2.vm.network "private_network", ip: "192.168.0.246"
agent2.vm.hostname = "docker-agent2.example.com"
agent2.vm.provision "shell", path: "docker_install.sh"
end
end