Skip to content
This repository has been archived by the owner on Apr 4, 2018. It is now read-only.

Commit

Permalink
Add three (dummy) nodes to the Vagrantfile
Browse files Browse the repository at this point in the history
Will create three VMs. As an indication of multi-VM support in Vagrant.
  • Loading branch information
dcarley committed Jun 11, 2013
1 parent 4c38cbb commit d74f5e3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Vagrantfile
@@ -1,6 +1,8 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

nodes = %w{node0 node1 node2}

Vagrant.configure("2") do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
Expand All @@ -10,4 +12,10 @@ Vagrant.configure("2") do |config|
puppet.manifests_path = "manifests"
puppet.module_path = [ "modules", "vendor/modules" ]
end

nodes.each do |node_name|
config.vm.define node_name do |node|
node.vm.hostname = node_name
end
end
end

0 comments on commit d74f5e3

Please sign in to comment.