New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there Gemfile Equivalent for Vagrant Plugins? #1789

Closed
tknerr opened this Issue Jun 3, 2013 · 20 comments

Comments

Projects
None yet
@tknerr
Contributor

tknerr commented Jun 3, 2013

My Vagrantfiles start relying on more and more plugins, probably in a specific version each. How can I make sure that it loads the correct plugins in the correct version?

My first thought was that there must be something like a Gemfile equivalent for Vagrant plugins, but I couldn't find it in the docs. Is there?

@tknerr

This comment has been minimized.

Show comment
Hide comment
@tknerr

tknerr Jun 6, 2013

Contributor

@mitchellh any pointers on this? Not supported right now? Plans for it? Or did I just miss how its done?

Contributor

tknerr commented Jun 6, 2013

@mitchellh any pointers on this? Not supported right now? Plans for it? Or did I just miss how its done?

@fgrehm

This comment has been minimized.

Show comment
Hide comment
@fgrehm

fgrehm Jun 6, 2013

Collaborator

👍 for this, I'm just not sure if it should be bundled with Vagrant itself or as a separate plugin

Collaborator

fgrehm commented Jun 6, 2013

👍 for this, I'm just not sure if it should be bundled with Vagrant itself or as a separate plugin

@tknerr

This comment has been minimized.

Show comment
Hide comment
@tknerr

tknerr Jun 10, 2013

Contributor

@fgrehm nice idea, I guess it could be done via a plugin

Contributor

tknerr commented Jun 10, 2013

@fgrehm nice idea, I guess it could be done via a plugin

@tknerr

This comment has been minimized.

Show comment
Hide comment
@tknerr

tknerr Jun 13, 2013

Contributor

Here's a first stab at it, created with @damphyr during a ballmer peak at 4am:
https://github.com/tknerr/vagrant-plugin-bundler

Contributor

tknerr commented Jun 13, 2013

Here's a first stab at it, created with @damphyr during a ballmer peak at 4am:
https://github.com/tknerr/vagrant-plugin-bundler

@patcon

This comment has been minimized.

Show comment
Hide comment
@patcon

patcon Jun 28, 2013

Contributor

Really think this is needed. We're currently discussing how this feature is a concern for a project that's depending on vagrant.

Contributor

patcon commented Jun 28, 2013

Really think this is needed. We're currently discussing how this feature is a concern for a project that's depending on vagrant.

@pirog

This comment has been minimized.

Show comment
Hide comment
@pirog

pirog Jun 28, 2013

agreed. have a pretty complex build that sometimes breaks when plugin versions change. would be great to specify.

pirog commented Jun 28, 2013

agreed. have a pretty complex build that sometimes breaks when plugin versions change. would be great to specify.

@fgrehm

This comment has been minimized.

Show comment
Hide comment
@fgrehm

fgrehm Jul 15, 2013

Collaborator

Hey guys, here's my take on the problem: https://github.com/fgrehm/vundler :)

Collaborator

fgrehm commented Jul 15, 2013

Hey guys, here's my take on the problem: https://github.com/fgrehm/vundler :)

@patcon

This comment has been minimized.

Show comment
Hide comment
@patcon

patcon Jul 16, 2013

Contributor

❤️

Contributor

patcon commented Jul 16, 2013

❤️

@patcon

This comment has been minimized.

Show comment
Hide comment
@patcon

patcon Jul 16, 2013

Contributor

Oh god, this is too perfect a name: bindler
I feel entirely way too smug right now.

http://dictionary.reference.com/browse/bindle
https://www.google.ca/search?q=bindle&tbm=isch

Contributor

patcon commented Jul 16, 2013

Oh god, this is too perfect a name: bindler
I feel entirely way too smug right now.

http://dictionary.reference.com/browse/bindle
https://www.google.ca/search?q=bindle&tbm=isch

@fgrehm fgrehm referenced this issue Jul 16, 2013

Closed

Rename plugin? #2

@mitchellh

This comment has been minimized.

Show comment
Hide comment
@mitchellh

mitchellh Jul 17, 2013

Member

I think for now delegating this out to Vundler is ideal. Closing.

Member

mitchellh commented Jul 17, 2013

I think for now delegating this out to Vundler is ideal. Closing.

@mitchellh mitchellh closed this Jul 17, 2013

@shishirsharma

This comment has been minimized.

Show comment
Hide comment
@shishirsharma

shishirsharma Apr 29, 2014

Vundler is now deprecated we now again need this. @mitchellh can you suggest how to manage plugin requirements.

shishirsharma commented Apr 29, 2014

Vundler is now deprecated we now again need this. @mitchellh can you suggest how to manage plugin requirements.

@hkdobrev

This comment has been minimized.

Show comment
Hide comment
@hkdobrev

hkdobrev Sep 21, 2014

👍 For reopening this. There is no alternative at the moment.

hkdobrev commented Sep 21, 2014

👍 For reopening this. There is no alternative at the moment.

@guilhem

This comment has been minimized.

Show comment
Hide comment
@guilhem

guilhem Jan 19, 2015

@mitchellh as many Vagrantfile options are specific to a plugin, and many time to a specific version of a plugin, it will be really good to being able to have something like "Gemfile" for Vagrant.

For the moment, to being able to share our project between developers, we have to put command lines in documentation...

guilhem commented Jan 19, 2015

@mitchellh as many Vagrantfile options are specific to a plugin, and many time to a specific version of a plugin, it will be really good to being able to have something like "Gemfile" for Vagrant.

For the moment, to being able to share our project between developers, we have to put command lines in documentation...

@modius

This comment has been minimized.

Show comment
Hide comment
@modius

modius commented Feb 24, 2015

Vagrant 1.5+ offers Bundler support via a Gemfile: https://www.vagrantup.com/blog/vagrant-1-5-plugin-improvements.html#toc_1

@tknerr

This comment has been minimized.

Show comment
Hide comment
@tknerr

tknerr Feb 24, 2015

Contributor

...but that's only used for plugin development, it will not help for
installing plugins into a "productive" vagrant environment :-/
Am 24.02.2015 06:09 schrieb "Geoff Bowers" notifications@github.com:

Vagrant 1.5+ offers Bundler support via a Gemfile:
https://www.vagrantup.com/blog/vagrant-1-5-plugin-improvements.html#toc_1


Reply to this email directly or view it on GitHub
#1789 (comment).

Contributor

tknerr commented Feb 24, 2015

...but that's only used for plugin development, it will not help for
installing plugins into a "productive" vagrant environment :-/
Am 24.02.2015 06:09 schrieb "Geoff Bowers" notifications@github.com:

Vagrant 1.5+ offers Bundler support via a Gemfile:
https://www.vagrantup.com/blog/vagrant-1-5-plugin-improvements.html#toc_1


Reply to this email directly or view it on GitHub
#1789 (comment).

@proteus-aholt

This comment has been minimized.

Show comment
Hide comment
@proteus-aholt

proteus-aholt May 26, 2015

looking for this exact support. currently, am working on creating a cohesive development environment solution for us, and am running into a plugin requirement that I would rather have automatically installed when "vagrant up" is called, rather than having it be an extra command.

looked at bindler, but it seems it is no longer supported.

I am echoing the above comment in that the gemfile support does not work for anything other than plugin development.

proteus-aholt commented May 26, 2015

looking for this exact support. currently, am working on creating a cohesive development environment solution for us, and am running into a plugin requirement that I would rather have automatically installed when "vagrant up" is called, rather than having it be an extra command.

looked at bindler, but it seems it is no longer supported.

I am echoing the above comment in that the gemfile support does not work for anything other than plugin development.

@cwc

This comment has been minimized.

Show comment
Hide comment
@cwc

cwc commented Jun 2, 2015

👍

@ut-adamc

This comment has been minimized.

Show comment
Hide comment
@ut-adamc

ut-adamc Sep 1, 2015

+1. Sometimes particular vagrantfiles need a gem and you really don't want to install it globally, even for Vagrant.

ut-adamc commented Sep 1, 2015

+1. Sometimes particular vagrantfiles need a gem and you really don't want to install it globally, even for Vagrant.

@tnguyen14

This comment has been minimized.

Show comment
Hide comment
@tnguyen14

tnguyen14 Nov 18, 2015

Running into this question as well. +1 on opening this issue.

tnguyen14 commented Nov 18, 2015

Running into this question as well. +1 on opening this issue.

@darkn3rd

This comment has been minimized.

Show comment
Hide comment
@darkn3rd

darkn3rd May 3, 2016

Highly interested, this would make it simple to install plug-ins for the project. As a suggestion, there this could be part of the Vagrantfile, maybe have a plug-in preprocessor something like this:

plugin 'vagrant-aws', '>=0.7.0'
plugin 'vagrant-berkshelf', '>=4.0.3'

This would install such plug-ins if they did not exist already. There could also be a Pluginfile as well to install these outside of a vagrant up. You could then just do a vagrant plugin install without listing any particular plugin, and it will search $PWD for Pluginfile, and install the plugins from that file.

darkn3rd commented May 3, 2016

Highly interested, this would make it simple to install plug-ins for the project. As a suggestion, there this could be part of the Vagrantfile, maybe have a plug-in preprocessor something like this:

plugin 'vagrant-aws', '>=0.7.0'
plugin 'vagrant-berkshelf', '>=4.0.3'

This would install such plug-ins if they did not exist already. There could also be a Pluginfile as well to install these outside of a vagrant up. You could then just do a vagrant plugin install without listing any particular plugin, and it will search $PWD for Pluginfile, and install the plugins from that file.

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