Skip to content

Instantly share code, notes, and snippets.

@zanshin
Created July 24, 2014 15:24
Show Gist options
  • Save zanshin/ef25b61fb9ad144b47ea to your computer and use it in GitHub Desktop.
Save zanshin/ef25b61fb9ad144b47ea to your computer and use it in GitHub Desktop.
Vargantfile using chef-client as provisoner
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.hostname = "ome-telecom-creditcard-berkshelf"
config.vm.box = "ome-devvm-ubuntu-12.04.4a"
config.vm.box_url = "https://tools.ome.ksu.edu/artifacts/devvm/ome-devvm-ubuntu-12.04.4a.box"
config.ssh.private_key_path = ".ssh/ome_devvm"
config.vm.network :private_network, ip: "33.33.33.10"
config.vm.network :forwarded_port, guest: 8080, host: 9000
config.vm.boot_timeout = 120
config.berkshelf.enabled = true
config.vm.provision :chef_client do |chef|
chef.chef_server_url = "https://est-config2.campus.ksu.edu/organizations/ome"
chef.validation_key_path = "/Users/mhn/.chef/est2-chef-validator.pem"
# chef.environment = "ome-dev"
run_list = ['role[ome_base]']
# chef.add_role = "ome_base"
end
end
@zanshin
Copy link
Author

zanshin commented Jul 24, 2014

This is the error I get.

Bringing machine 'default' up with 'virtualbox' provider...
Uploading cookbooks to 'https://est-config2.campus.ksu.edu/organizations/ome'
/Applications/Vagrant/embedded/gems/gems/i18n-0.6.9/lib/i18n/core_ext/hash.rb:4:in fetch': key not found: :retries (KeyError) from /Applications/Vagrant/embedded/gems/gems/i18n-0.6.9/lib/i18n/core_ext/hash.rb:4:inblock in slice'
from /Applications/Vagrant/embedded/gems/gems/i18n-0.6.9/lib/i18n/core_ext/hash.rb:4:in each' from /Applications/Vagrant/embedded/gems/gems/i18n-0.6.9/lib/i18n/core_ext/hash.rb:4:inslice'
from /Users/mhn/.vagrant.d/gems/gems/ridley-4.0.0/lib/ridley/client.rb:10:in initialize' from /Users/mhn/.vagrant.d/gems/gems/celluloid-0.16.0.pre2/lib/celluloid/calls.rb:26:inpublic_send'
from /Users/mhn/.vagrant.d/gems/gems/celluloid-0.16.0.pre2/lib/celluloid/calls.rb:26:in dispatch' from /Users/mhn/.vagrant.d/gems/gems/celluloid-0.16.0.pre2/lib/celluloid/calls.rb:63:indispatch'
from /Users/mhn/.vagrant.d/gems/gems/celluloid-0.16.0.pre2/lib/celluloid/cell.rb:60:in block in invoke' from /Users/mhn/.vagrant.d/gems/gems/celluloid-0.16.0.pre2/lib/celluloid/cell.rb:71:inblock in task'
from /Users/mhn/.vagrant.d/gems/gems/celluloid-0.16.0.pre2/lib/celluloid/actor.rb:369:in block in task' from /Users/mhn/.vagrant.d/gems/gems/celluloid-0.16.0.pre2/lib/celluloid/tasks.rb:55:inblock in initialize'
from /Users/mhn/.vagrant.d/gems/gems/celluloid-0.16.0.pre2/lib/celluloid/tasks/task_fiber.rb:15:in block in create' from (celluloid):0:inremote procedure call'
from /Users/mhn/.vagrant.d/gems/gems/celluloid-0.16.0.pre2/lib/celluloid/calls.rb:92:in value' from /Users/mhn/.vagrant.d/gems/gems/celluloid-0.16.0.pre2/lib/celluloid/proxies/sync_proxy.rb:33:inmethod_missing'
from /Users/mhn/.vagrant.d/gems/gems/celluloid-0.16.0.pre2/lib/celluloid/proxies/cell_proxy.rb:17:in _send_' from /Users/mhn/.vagrant.d/gems/gems/celluloid-0.16.0.pre2/lib/celluloid.rb:169:innew'
from /Users/mhn/.vagrant.d/gems/gems/ridley-4.0.0/lib/ridley/client.rb:146:in initialize' from /Users/mhn/.vagrant.d/gems/gems/celluloid-0.16.0.pre2/lib/celluloid/calls.rb:26:inpublic_send'
from /Users/mhn/.vagrant.d/gems/gems/celluloid-0.16.0.pre2/lib/celluloid/calls.rb:26:in dispatch' from /Users/mhn/.vagrant.d/gems/gems/celluloid-0.16.0.pre2/lib/celluloid/calls.rb:63:indispatch'
from /Users/mhn/.vagrant.d/gems/gems/celluloid-0.16.0.pre2/lib/celluloid/cell.rb:60:in block in invoke' from /Users/mhn/.vagrant.d/gems/gems/celluloid-0.16.0.pre2/lib/celluloid/cell.rb:71:inblock in task'
from /Users/mhn/.vagrant.d/gems/gems/celluloid-0.16.0.pre2/lib/celluloid/actor.rb:369:in block in task' from /Users/mhn/.vagrant.d/gems/gems/celluloid-0.16.0.pre2/lib/celluloid/tasks.rb:55:inblock in initialize'
from /Users/mhn/.vagrant.d/gems/gems/celluloid-0.16.0.pre2/lib/celluloid/tasks/task_fiber.rb:15:in block in create' from (celluloid):0:inremote procedure call'
from /Users/mhn/.vagrant.d/gems/gems/celluloid-0.16.0.pre2/lib/celluloid/calls.rb:92:in value' from /Users/mhn/.vagrant.d/gems/gems/celluloid-0.16.0.pre2/lib/celluloid/proxies/sync_proxy.rb:33:inmethod_missing'
from /Users/mhn/.vagrant.d/gems/gems/celluloid-0.16.0.pre2/lib/celluloid/proxies/cell_proxy.rb:17:in _send_' from /Users/mhn/.vagrant.d/gems/gems/celluloid-0.16.0.pre2/lib/celluloid.rb:169:innew'
from /Users/mhn/.vagrant.d/gems/gems/ridley-4.0.0/lib/ridley/client.rb:35:in open' from /Users/mhn/.vagrant.d/gems/gems/ridley-4.0.0/lib/ridley.rb:51:inopen'
from /Users/mhn/.vagrant.d/gems/gems/berkshelf-3.1.3/lib/berkshelf.rb:157:in ridley_connection' from /Users/mhn/.vagrant.d/gems/gems/berkshelf-3.1.3/lib/berkshelf/uploader.rb:49:inupload'
from /Users/mhn/.vagrant.d/gems/gems/berkshelf-3.1.3/lib/berkshelf/uploader.rb:36:in run' from /Users/mhn/.vagrant.d/gems/gems/berkshelf-3.1.3/lib/berkshelf/berksfile.rb:542:inupload'
from /Users/mhn/.vagrant.d/gems/gems/vagrant-berkshelf-2.0.1/lib/berkshelf/vagrant/action/upload.rb:34:in block in upload' from /Users/mhn/.vagrant.d/gems/gems/vagrant-berkshelf-2.0.1/lib/berkshelf/vagrant/action/upload.rb:32:ineach'
from /Users/mhn/.vagrant.d/gems/gems/vagrant-berkshelf-2.0.1/lib/berkshelf/vagrant/action/upload.rb:32:in upload' from /Users/mhn/.vagrant.d/gems/gems/vagrant-berkshelf-2.0.1/lib/berkshelf/vagrant/action/upload.rb:21:incall'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /Users/mhn/.vagrant.d/gems/gems/vagrant-berkshelf-2.0.1/lib/berkshelf/vagrant/action/install.rb:35:incall'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/provision.rb:80:incall'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/providers/virtualbox/action/clear_forwarded_ports.rb:15:incall'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/providers/virtualbox/action/set_name.rb:19:incall'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/providers/virtualbox/action/clean_machine_folder.rb:17:incall'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/providers/virtualbox/action/check_accessible.rb:18:incall'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:95:inblock in finalize_action'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:incall'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builder.rb:116:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:inblock in run'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/util/busy.rb:19:in busy' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:inrun'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/call.rb:53:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:incall'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:95:in block in finalize_action' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:incall'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builder.rb:116:incall'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in block in run' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/util/busy.rb:19:inbusy'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in run' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/call.rb:53:incall'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:95:inblock in finalize_action'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:incall'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builder.rb:116:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:inblock in run'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/util/busy.rb:19:in busy' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:inrun'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/call.rb:53:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:incall'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/box_check_outdated.rb:36:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:incall'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/config_validate.rb:25:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:incall'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:incall'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:95:in block in finalize_action' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:incall'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:95:inblock in finalize_action'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:incall'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builder.rb:116:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:inblock in run'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/util/busy.rb:19:in busy' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:inrun'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/call.rb:53:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:incall'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/config_validate.rb:25:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:incall'
from /Users/mhn/.vagrant.d/gems/gems/vagrant-berkshelf-2.0.1/lib/berkshelf/vagrant/action/configure_chef.rb:22:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:incall'
from /Users/mhn/.vagrant.d/gems/gems/vagrant-berkshelf-2.0.1/lib/berkshelf/vagrant/action/load_shelf.rb:27:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:incall'
from /Users/mhn/.vagrant.d/gems/gems/vagrant-berkshelf-2.0.1/lib/berkshelf/vagrant/action/set_ui.rb:11:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:incall'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/env_set.rb:19:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:incall'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:95:in block in finalize_action' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:incall'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:95:inblock in finalize_action'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:incall'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builder.rb:116:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:inblock in run'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/util/busy.rb:19:in busy' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:inrun'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/call.rb:53:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:incall'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:incall'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builder.rb:116:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:inblock in run'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/util/busy.rb:19:in busy' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:inrun'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:196:in action_raw' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:173:inblock in action'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/environment.rb:434:in lock' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:161:incall'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:161:in action' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/batch_action.rb:82:inblock (2 levels) in run'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment