Created
June 30, 2016 02:14
-
-
Save feload/d4123cdd905285e8d246f8787517a5cb to your computer and use it in GitHub Desktop.
Multiple vagrant machines configuration
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.configure("2") do |config| | |
config.vm.define "webserver" do |webserver| | |
webserver.vm.box = "hashicorp/precise64" | |
webserver.vm.network "private_network", ip: "192.168.0.2" | |
webserver.vm.hostname = "webserver" | |
end | |
config.vm.define "ansible" do |ansible| | |
ansible.vm.box = "hashicorp/precise64" | |
ansible.vm.network "private_network", ip: "192.168.0.22" | |
ansible.vm.hostname = "ansible" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment