Skip to content

Instantly share code, notes, and snippets.

@erran-r7
Last active December 19, 2015 16:18
Show Gist options
  • Save erran-r7/5982206 to your computer and use it in GitHub Desktop.
Save erran-r7/5982206 to your computer and use it in GitHub Desktop.
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = 'precise64'
client_vagrantfile = File.expand_path('../Vagrantfile.client', __FILE__)
eval File.read(client_vagrantfile) if File.exists?(client_vagrantfile)
config.vm.define :server do |server_config|
server_vagrantfile = File.expand_path('../Vagrantfile.server', __FILE__)
eval File.read(server_vagrantfile) if File.exists?(server_vagrantfile)
end
end
client_vagrantfile2 = File.expand_path('../Vagrantfile.client2', __FILE__)
load client_vagrantfile2 if File.exists?(client_vagrantfile2)
# -*- mode: ruby -*-
# vi: set ft=ruby :
config.vm.define :client do |client_config|
client_config.vm.hostname = 'client'
end
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = 'precise64'
config.vm.define :client2 do |client2_config|
client2_config.vm.hostname = 'client2'
end
end
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Here you can use the server_config variable
server_config.vm.hostname = 'server'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment