By globalbudget
config.vm.provider :digital_ocean do |provider| provider.ssh.private_key_path = “~/.ssh/id_rsa” provider.token = “(****************************************************************)” provider.image = “ubuntu-14-04-x64” provider.region = “ams1” provider.size = “1gb” provider.private_networking = true provider.backups_enable = true
end
I tried to bring up a droplet with the shown vagrant config but when I run it I get this vagrant up --provider digital_ocean Bringing machine ‘default’ up with ‘digital_ocean’ provider… There was an issue with the request made to the Digital Ocean API at:
Path: /v2/droplets URI Params: {}
The response status from the API was:
Status: 401 Response: {“id”=>“translation missing: en.status_code.unauthorized.id”, “message”=>“Unable to authenticate you.”}
I have the most recent version of Vagrant and v 0.7.0 of the DO plugin
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hello,
the plugin now use API v2, so check if your Vagranfile have:
provider.token = ‘YOUR TOKEN’
https://github.com/smdahlen/vagrant-digitalocean
Sample code:
Vagrant.configure('2') do |config|
config.vm.provider :digital_ocean do |provider, override|
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 = 'YOUR TOKEN'
provider.image = 'ubuntu-14-04-x64'
provider.region = 'nyc2'
provider.size = '512mb'
end
end
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.
