Zuehlke / cookbook-elk-stack

0 stars 1 forks source link

Provisioner error in Vagrantfile #14

Open damphyr opened 8 years ago

damphyr commented 8 years ago

OS X, Vagrant 1.8.1 and ChefDK 0.10.0

$ vagrant up
Bringing machine 'elastic-test' up with 'virtualbox' provider...
==> elastic-test: Box 'bento/ubuntu-14.04' could not be found. Attempting to find and install...
    elastic-test: Box Provider: virtualbox
    elastic-test: Box Version: >= 0
==> elastic-test: Loading metadata for box 'bento/ubuntu-14.04'
    elastic-test: URL: https://atlas.hashicorp.com/bento/ubuntu-14.04
==> elastic-test: Adding box 'bento/ubuntu-14.04' (v2.2.3) for provider: virtualbox
    elastic-test: Downloading: https://atlas.hashicorp.com/bento/boxes/ubuntu-14.04/versions/2.2.3/providers/virtualbox.box
==> elastic-test: Successfully added box 'bento/ubuntu-14.04' (v2.2.3) for 'virtualbox'!
There are errors in the configuration of this machine. Please fix
the following errors and try again:

chef zero provisioner:
* Missing required value for `chef.nodes_path'.
tknerr commented 8 years ago

Thanks for reporting, that looks like a bug. I'm still on Vagrant 1.7.4 and ChefDK 0.7.0 in my environment, and haven't tested that.

In the meantime, can you try vagrant up on the "remote-syslog" branch (see PR #11)?

That is the latest state I'm about to merge (once I made the syslog port configurable via an attribute), and within that I also switched back to the "chef_solo" provisioner. This was for 2 reasons:

  1. chef_zero provisioner is super slow with virtualbox provider (due to their bad sharedfolders implementation)
  2. because I want to do this in my infrastructure repo and "chef_zero" provisioner does not support the "recipe_url" option:
   cfg.vm.provision "chef_solo" do |chef|
      chef.recipe_url = "https://circleci-tkn.rhcloud.com/api/v1/project/Zuehlke/cookbook-elk-stack/tree/remote-syslog/latest/artifacts/cookbooks.tar.gz"
      chef.add_recipe "elk-stack::default"
    end

(the beauty of 2. is that this cookbooks.tar.gz includes already all resolved cookbooks as in Berksfile.lock, i.e. no need to resolve the cookbook deps again and no need to have berkshelf installed)