Skip to content

Instantly share code, notes, and snippets.

@jaytaph
Created October 14, 2012 07:23
Show Gist options
  • Save jaytaph/3887712 to your computer and use it in GitHub Desktop.
Save jaytaph/3887712 to your computer and use it in GitHub Desktop.
Simple multi VM system
Simple multi VM system.
* Use "vagrant up" to install 3 vagrant boxes.
* Use "Vagrant ssh master|node1|node2" to ssh into the respective VM
* Most vagrant commands will need the additional nodename to work ("vagrant reload node1" for example)
Vagrant::Config.run do |config|
config.vm.box = 'centos-63-32bit-puppet'
config.vm.box_url = 'https://dl.dropbox.com/sh/9rldlpj3cmdtntc/chqwU6EYaZ/centos-63-32bit-puppet.box'
config.vm.boot_mode = :gui
config.vm.define :master do |master_config|
master_config.vm.host_name = 'puppetmaster.webtech.ipc'
master_config.vm.network :hostonly, "33.33.33.100"
end
config.vm.define :node1 do |node1_config|
node1_config.vm.host_name = 'node1.webtech.ipc'
node1_config.vm.network :hostonly, "33.33.33.101"
end
config.vm.define :node2 do |node2_config|
node2_config.vm.host_name = 'node2.webtech.ipc'
node2_config.vm.network :hostonly, "33.33.33.102"
end
end
@Ocramius
Copy link

@jaytaph need to rename :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment