Last active
August 26, 2017 10:35
-
-
Save asaushkin/6269ed988a3a4ac4e1611bf495eb75da to your computer and use it in GitHub Desktop.
Vagrant file with the digital ocean and virtualbox providers
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 : | |
# First of all, you must obtain an API access key for the Digital Ocean | |
# provider here https://www.digitalocean.com/api_access | |
# Next, before use, you must set a local environment key `DIGITAL_OCEAN_TOKEN` | |
# to the obtained value in the ~/.bashrc file. | |
Vagrant.configure("2") do |config| | |
config.vm.provider "virtualbox" do |vb, override| | |
override.vm.box = 'ubuntu/trusty64' | |
# Customize the amount of memory on the VM: | |
vb.memory = "1024" | |
end | |
config.vm.provider :digital_ocean do |provider, override| | |
config.vm.define "checkdo" do |checkdo| | |
end | |
override.ssh.private_key_path = '~/.ssh/id_rsa' | |
override.vm.box = 'digital_ocean' | |
override.vm.box_url = "https://github.com/smdahlen/vagrant-digitalocean/raw/master/box/digital_ocean.box" | |
provider.token = ENV['DIGITAL_OCEAN_TOKEN'] | |
provider.image = "ubuntu-14-04-x64" | |
provider.region = "lon1" | |
provider.size = '512mb' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment