Skip to content

Instantly share code, notes, and snippets.

@displague
Last active February 6, 2017 13:48
Show Gist options
  • Save displague/1605285f0bf8fe4a251e to your computer and use it in GitHub Desktop.
Save displague/1605285f0bf8fe4a251e to your computer and use it in GitHub Desktop.
$ vagrant up dev3-dallas
Bringing machine 'dev3-dallas' up with 'linode' provider...
==> dev3-dallas: Creating a new linode...
==> dev3-dallas: Created a new linode... 1138716
/Users/marques/.vagrant.d/gems/gems/linodeapi-0.1.1/lib/linodeapi/raw.rb:85:in `parse': API Error on linode.disk.create: [{"ERRORCODE"=>6, "ERRORMESSAGE"=>"Label is required but was not passed in"}] (RuntimeError)
from /Users/marques/.vagrant.d/gems/gems/linodeapi-0.1.1/lib/linodeapi/raw.rb:79:in `error_check'
from /Users/marques/.vagrant.d/gems/gems/linodeapi-0.1.1/lib/linodeapi/raw.rb:71:in `call'
from /Users/marques/.vagrant.d/gems/gems/linodeapi-0.1.1/lib/linodeapi/raw.rb:62:in `block in make_call'
from /Users/marques/.vagrant.d/gems/gems/linodeapi-0.1.1/lib/linodeapi/raw.rb:63:in `make_call'
from /Users/marques/.vagrant.d/gems/gems/linodeapi-0.1.1/lib/linodeapi/raw.rb:44:in `method_missing'
from /Users/marques/.vagrant.d/gems/gems/vagrant-linode-0.1.3/lib/vagrant-linode/actions/create.rb:97:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/builder.rb:116:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/runner.rb:66:in `block in run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/util/busy.rb:19:in `busy'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/runner.rb:66:in `run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/builtin/call.rb:53:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/builder.rb:116:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/runner.rb:66:in `block in run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/util/busy.rb:19:in `busy'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/runner.rb:66:in `run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/machine.rb:214:in `action_raw'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/machine.rb:191:in `block in action'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/environment.rb:516:in `lock'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/machine.rb:178:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/machine.rb:178:in `action'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/batch_action.rb:82:in `block (2 levels) in run'
displague@d:~/src/vagrant-linode$ vagrant destroy dev1-newark
dev1-newark: Are you sure you want to destroy the 'dev1-newark' VM? [y/N] y
==> dev1-newark: Destroying the linode...
==> dev1-newark: Running cleanup tasks for 'shell' provisioner...
displague@d:~/src/vagrant-linode$ vagrant up dev1-newark
Bringing machine 'dev1-newark' up with 'linode' provider...
==> dev1-newark: Creating a new linode...
==> dev1-newark: Created a new linode... 1408885
==> dev1-newark: Booting Linode 1408885 ...
==> dev1-newark: Assigned IP address: 45.79.141.207
==> dev1-newark: Rsyncing folder: /home/displague/src/vagrant-linode/ => /vagrant...
==> dev1-newark: Running provisioner: shell...
dev1-newark: Running: inline script
==> dev1-newark: stdin: is not a tty
==> dev1-newark: localhost
# -*- mode: ruby -*-
# vi: set ft=ruby et sw=2 sts=2 ts=8:
VAGRANTFILE_API_VERSION = '2'
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# config.vm.box = "box-cutter/debian75"
#config.vm.synced_folder 'test/', '/srv/test/'
['newark','dallas','fremont','atlanta'].each do |datacenter|
(1..4).each do |i|
['dev','prod'].each do |linode_env|
config.vm.define "#{linode_env}#{i}-#{datacenter}" do |linode|
linode.vm.synced_folder ".", "/vagrant", rsync__exclude: [".git/",'vendor/'], type: 'rsync'
linode.vm.provision "shell", inline: "hostname"
linode.vm.hostname = "#{linode_env}#{i}-#{datacenter}"
linode.vm.provider :linode do |provider, override|
override.ssh.private_key_path = '~/.ssh/id_rsa'
# override.vm.box = 'linode627155'
override.vm.box = "linode"
override.vm.box_url = "https://github.com/displague/vagrant-linode/raw/master/box/linode.box"
#provider.kernel = '4.0.5-x86_64'
provider.label = linode.vm.hostname
provider.token = ENV['LINODE_API_KEY']
# provider.distribution = 'Ubuntu 14.04 LTS'
provider.datacenter = datacenter
provider.plan = 'Linode 1024'
provider.distribution = 'Debian 8'
end
end
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment