Last active
December 19, 2015 16:18
-
-
Save erran-r7/5982206 to your computer and use it in GitHub Desktop.
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
# -*- 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) |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
config.vm.define :client do |client_config| | |
client_config.vm.hostname = 'client' | |
end |
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
# -*- 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 |
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
# -*- 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