Created
October 14, 2012 07:23
-
-
Save jaytaph/3887712 to your computer and use it in GitHub Desktop.
Simple multi VM system
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
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) |
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::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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@jaytaph need to rename :)