22 lines
584 B
Ruby
22 lines
584 B
Ruby
# -*- mode: ruby -*-
|
|
# vi: set ft=ruby :
|
|
|
|
Vagrant.require_plugin('vagrant-hostmanager')
|
|
|
|
Vagrant.configure('2') do |config|
|
|
config.vm.box = 'precise64-chef11.2'
|
|
config.vm.box_url = 'https://opscode-vm.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_chef-11.2.0.box'
|
|
|
|
config.hostmanager.enabled = true
|
|
|
|
config.vm.define :server1 do |server|
|
|
server.vm.hostname = 'fry'
|
|
server.vm.network :private_network, :ip => '10.0.5.2'
|
|
end
|
|
|
|
config.vm.define :server2 do |server|
|
|
server.vm.hostname = 'bender'
|
|
server.vm.network :private_network, :ip => '10.0.5.3'
|
|
end
|
|
end
|