24 lines
677 B
Ruby
24 lines
677 B
Ruby
# -*- mode: ruby -*-
|
|
# vi: set ft=ruby :
|
|
|
|
Vagrant.require_plugin('vagrant-hostmanager')
|
|
|
|
Vagrant.configure('2') do |config|
|
|
config.vm.box = 'precise64'
|
|
config.vm.box_url = 'http://cloud-images.ubuntu.com/precise/current/precise-server-cloudimg-vagrant-amd64-disk1.box'
|
|
|
|
config.hostmanager.enabled = true
|
|
config.hostmanager.manage_host = true
|
|
|
|
config.vm.define :server1 do |server|
|
|
server.vm.hostname = 'fry'
|
|
server.vm.network :private_network, :ip => '10.0.5.2'
|
|
server.hostmanager.aliases = %w(test-alias)
|
|
end
|
|
|
|
config.vm.define :server2 do |server|
|
|
server.vm.hostname = 'bender'
|
|
server.vm.network :private_network, :ip => '10.0.5.3'
|
|
end
|
|
end
|