Last active
September 10, 2016 05:44
-
-
Save engineerball/6b83a6d3ceecf6aa919efa40aa194f7f to your computer and use it in GitHub Desktop.
Vagrant file for devops workshop
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Vagrant.configure("2") do |config| | |
| config.vm.define "node-1" do |node| | |
| node.vm.box = "ubuntu/trusty64" | |
| node.vm.hostname = "node-1" | |
| node.vm.network :private_network, ip: "192.168.56.101" | |
| node.vm.provider :virtualbox do |v| | |
| v.customize ["modifyvm", :id, "--memory", 1024] | |
| v.customize ["modifyvm", :id, "--name", "node-1"] | |
| end | |
| end | |
| config.vm.define "node-2" do |node| | |
| node.vm.box = "ubuntu/trusty64" | |
| node.vm.hostname = "node-2" | |
| node.vm.network :private_network, ip: "192.168.56.102" | |
| node.vm.provider :virtualbox do |v| | |
| v.customize ["modifyvm", :id, "--memory", 1024] | |
| v.customize ["modifyvm", :id, "--name", "node-2"] | |
| end | |
| end | |
| config.vm.define "node-3" do |node| | |
| node.vm.box = "ubuntu/trusty64" | |
| node.vm.hostname = "node-3" | |
| node.vm.network :private_network, ip: "192.168.56.103" | |
| node.vm.provider :virtualbox do |v| | |
| v.customize ["modifyvm", :id, "--memory", 1024] | |
| v.customize ["modifyvm", :id, "--name", "node-3"] | |
| end | |
| end | |
| config.vm.define "node-4" do |node| | |
| node.vm.box = "ubuntu/trusty64" | |
| node.vm.hostname = "node-4" | |
| node.vm.network :private_network, ip: "192.168.56.104" | |
| node.vm.provider :virtualbox do |v| | |
| v.customize ["modifyvm", :id, "--memory", 1024] | |
| v.customize ["modifyvm", :id, "--name", "node-4"] | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment