Skip to content
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

mixlib-versioning gem not found to airgapped systems #80

Open
JackChance opened this issue Feb 8, 2016 · 4 comments
Open

mixlib-versioning gem not found to airgapped systems #80

JackChance opened this issue Feb 8, 2016 · 4 comments
Labels
Type: Enhancement Adds new functionality.

Comments

@JackChance
Copy link

Found this issue while trying to install a private supermarket with supermarket-omnibus-cookbook.

In chef-ingredient/libraries/helpers.rb is the code

69    def ensure_mixlib_versioning_gem_installed!
70      node.run_state[:mixlib_versioning_gem_installed] ||= begin # ~FC001
71        install_gem_from_rubygems('mixlib-versioning', '1.1.0')
72
73        require 'mixlib/versioning'
74        true
75      end

I've noticed in my own recipes that if the version you specify with a gem is the latest version it will fail to find it on rubygems.org.

Only reason I haven't done a pull request myself is because I'm unsure of how to lock to version 1.1.0 when it's the latest version of the gem.

@pjelou
Copy link

pjelou commented Sep 25, 2016

This also creates a problem using this(and many ones that depend on this) in closed(no internet access) environment.

@tas50 tas50 added the Type: Enhancement Adds new functionality. label Dec 22, 2016
@tas50 tas50 changed the title mixlib-versioning gem not found mixlib-versioning gem not found to airgapped systems Dec 22, 2016
@OxHobbs
Copy link

OxHobbs commented Apr 4, 2017

Did you have some kind of workaround for air-gapped systems @paveljeloudovski? I am running into the same issues with an air-gapped environment. I am trying to determine the most practical path forward for resolving or working around the hard coded GitHub URL and rubygems URL.

@pjelou
Copy link

pjelou commented Apr 5, 2017

Yes.
I'll have to check exactly what I did when at work.
In general.
What we have is a local ruby gems repo based on artifactory(but it was just a web server before) and there is a cookbook that we run on all servers that configures the ruby to work with repo at compile time.
So all the gems are installed from there. I can share the code for that if you need.
I'll have to check if this is what solved this issue or I had to do something more.

@pjelou
Copy link

pjelou commented Apr 5, 2017

This what we use to setup the gems repo
https://github.com/paveljeloudovski/random/blob/master/gemconf.rb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Adds new functionality.
Projects
None yet
Development

No branches or pull requests

4 participants