SHARE
TWEET

Docker logging - Laboratorio Swarm - Vagrantfile

mcappadonna Mar 29th, 2017 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # 2017/03/28 - Matteo Cappadonna
  2. # http://www.miamammausalinux.org
  3.  
  4. Vagrant.configure("2") do |config|
  5.   config.vm.provider "virtualbox" do |vb|
  6.     vb.gui = false
  7.     vb.memory = "1024"
  8.   end
  9.  
  10.   # Host cluster swarm
  11.   config.vm.define "snode1" do |snode1|
  12.     snode1.vm.hostname = "snode1"
  13.     snode1.vm.box = "centos/7/docker"
  14.  
  15.     # Network
  16.     ## Swarm interconnect
  17.     snode1.vm.network "private_network", ip: "172.20.0.11"
  18.     ## Server Network
  19.     snode1.vm.network "private_network", ip: "172.30.0.11"
  20.   end
  21.   config.vm.define "snode2" do |snode2|
  22.     snode2.vm.hostname = "snode2"
  23.     snode2.vm.box = "centos/7/docker"
  24.  
  25.     # Network
  26.     ## Swarm interconnect
  27.     snode2.vm.network "private_network", ip: "172.20.0.12"
  28.     ## Server network
  29.     snode2.vm.network "private_network", ip: "172.30.0.12"
  30.   end
  31.   config.vm.define "snode3" do |snode3|
  32.     snode3.vm.hostname = "snode3"
  33.     snode3.vm.box = "centos/7/docker"
  34.  
  35.     # Network
  36.     ## Swarm interconnect
  37.     snode3.vm.network "private_network", ip: "172.20.0.13"
  38.     ## Server network
  39.     snode3.vm.network "private_network", ip: "172.30.0.13"
  40.   end
  41.   config.vm.define "snode4" do |snode4|
  42.     snode4.vm.hostname = "snode4"
  43.     snode4.vm.box = "centos/7/docker"
  44.  
  45.     # Network
  46.     ## Swarm interconnect
  47.     snode4.vm.network "private_network", ip: "172.20.0.14"
  48.     ## Server network
  49.     snode4.vm.network "private_network", ip: "172.30.0.14"
  50.   end
  51.   config.vm.define "snode5" do |snode5|
  52.     snode5.vm.hostname = "snode5"
  53.     snode5.vm.box = "centos/7/docker"
  54.  
  55.     # Network
  56.     ## Swarm interconnect
  57.     snode5.vm.network "private_network", ip: "172.20.0.15"
  58.     ## Server network
  59.     snode5.vm.network "private_network", ip: "172.30.0.15"
  60.   end
  61.  
  62.   # External host (usefull for testing other services)
  63.   config.vm.define "exthost" do |exthost|
  64.     exthost.vm.hostname = "exthost"
  65.     exthost.vm.box = "centos/7/docker"
  66.     ## Server network
  67.     exthost.vm.network "private_network", ip: "172.30.0.20"
  68.   end
  69. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top