Last active
December 24, 2015 16:39
-
-
Save esogs/6829479 to your computer and use it in GitHub Desktop.
vagrant multi-machine, multi-provider, should this work? vagrant --version Vagrant 1.3.3
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 : | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "Fedora_19_x86_64" | |
config.vm.box_url = "https://dl.dropboxusercontent.com/u/86066173/fedora-19.box" | |
config.vm.define :web do |web| | |
web.vm.provider :virtualbox do |vb, override| | |
vb.vm.network :private_network, ip: "172.16.1.10" | |
end | |
end | |
config.vm.define :db do |db| | |
db.vm.provider :virtualbox do |vb, override| | |
vb.vm.network :private_network, ip: "172.16.1.11" | |
end | |
end | |
config.vm.define :digitalocean do |digitalocean| | |
digitalocean.vm.provider :digital_ocean do |provider, override| | |
override.vm.box = "digital_ocean" | |
override.vm.box_url = "https://github.com/smdahlen/vagrant-digitalocean/raw/master/box/digital_ocean.box" | |
override.ssh.private_key_path = "~/.ssh/digitalocean" | |
provider.client_id = "ADDYOURSHERE" | |
provider.api_key = "ADDYOURSHERE" | |
provider.image = "Fedora 19 x86-64" | |
provider.region = "New York 2" | |
provider.size = "512MB" | |
provider.ca_path = "/etc/ssl/certs/ca-certificates.crt" | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment