Git Product home page Git Product logo

Comments (6)

damphyr avatar damphyr commented on August 14, 2024

I am discovering the missing plugins one by one and cursing you all the way... :P

from cookbook-elk-stack.

damphyr avatar damphyr commented on August 14, 2024

Also, berkshelf fails spectacularly on my OS X installation with convoluted git related errors, which is a big bummer.

from cookbook-elk-stack.

SvenBayer avatar SvenBayer commented on August 14, 2024

Could this be partly solved with the following snippet?

Required Vagrant plugins for this script. (Not sure if comma separation is correct)

required_plugins = %w( vagrant-omnibus, vagrant-berkshelf )

Install required Vagrant plugins.

required_plugins.each do |plugin|
system "vagrant plugin install #{plugin}" unless Vagrant.has_plugin? plugin
end

from cookbook-elk-stack.

damphyr avatar damphyr commented on August 14, 2024

Probably :)

from cookbook-elk-stack.

tknerr avatar tknerr commented on August 14, 2024

@SvenBayer there is a whole thread on this issue where Vagrant is missing something like a Gemfile to automatically install missing plugins, with all kinds of more or less sophisticated workarounds ;-)
hashicorp/vagrant#1874

It's really sad that this mechanism is still not in yet :-(

@damphyr haha, rememeber our vagrant-plugin-bundler nightly hack session from 2 years ago at the camp?! :-)))

On the plugin dependencies: I wanted to save on the additional code for installing missing plugins and intended to "document" the plugin requirements here in the Vagrantfile. Also I wouldn't want a vagrant up to install new plugins as a side effect, because plugins are global and would possibly break my other vagrant projects.

My way of dealing with that in projects is to distribute a "DevPack" like bills-kitchen for windows users, or a VM like linus-kitchen for linux users. Then I only refer to "needs (bills|linus)-kitchen version X.Y.Z)" in the README (which is clearly missing here -- sorry for that...). Also, there is no steves-kitchen yet Vassilis ;-)

from cookbook-elk-stack.

tknerr avatar tknerr commented on August 14, 2024

Finally, I was already tempted to remove the Vagrantfile for exactly the problems you are having now. You don't even need it as you can do the very same things using test-kitchen too, it's just a slighly different syntax:

It still uses the vagrant driver, but does not need any additional plugins (test-kitchen handles the installation of the omnibus chef client and also runs berkshelf on its own)

Last but not least: in the context of the new Policyfiles feature berkshelf will eventually get replaced by a pure ruby based dependency solver (= no need to compile libgecode on bundle install which takes forever), but not sure when this is going to happen.

It would be super interesting for us (topic team) to take a look at the Policyfiles, but right now it seems not mainstream enough to me yet to replace berkshelf (e.g. there is no vagrant-policyfiles plugin yet, not sure if it works in a chef-serverless workflow, etc...)

from cookbook-elk-stack.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.