Skip to content

Instantly share code, notes, and snippets.

@marcuslang
Last active September 25, 2022 17:54
Show Gist options
  • Select an option

  • Save marcuslang/9e31543ec583ddeef29734ab47ea0474 to your computer and use it in GitHub Desktop.

Select an option

Save marcuslang/9e31543ec583ddeef29734ab47ea0474 to your computer and use it in GitHub Desktop.

Revisions

  1. marcuslang revised this gist Dec 20, 2016. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions Vagrant Multi-VM with IP-LOOP
    Original file line number Diff line number Diff line change
    @@ -2,9 +2,9 @@ Vagrant.configure("2") do |config|

    (1..3).each do |i|
    config.vm.define "node-#{i}" do |node|
    node.vm.box = "ubuntu/trusty64"
    node.vm.box = "ubuntu/trusty64"
    node.vm.network "private_network", ip: "192.168.25.#{i}", auto_config: false
    node.vm.provision "shell", inline: "echo hello from node #{i}"
    node.vm.provision "shell", inline: "echo hello from node #{i}"
    end
    end

  2. marcuslang created this gist Dec 20, 2016.
    11 changes: 11 additions & 0 deletions Vagrant Multi-VM with IP-LOOP
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    Vagrant.configure("2") do |config|

    (1..3).each do |i|
    config.vm.define "node-#{i}" do |node|
    node.vm.box = "ubuntu/trusty64"
    node.vm.network "private_network", ip: "192.168.25.#{i}", auto_config: false
    node.vm.provision "shell", inline: "echo hello from node #{i}"
    end
    end

    end