voxpupuli / ra10ke

Rake tasks related to R10K and Puppetfile
https://rubygems.org/gems/ra10ke
MIT License
30 stars 24 forks source link

Change forge repo used #24

Open danielserrao opened 6 years ago

danielserrao commented 6 years ago

Hi,

When I execute /usr/local/bin/pdk bundle -- exec rake r10k:dependencies I get the following error:

rake aborted!
Faraday::TimeoutError: Connection timed out - connect(2) for "forgeapi.puppetlabs.com" port 443

This happens due to a Firewall, but I'm trying to use our internal forge repo by having the line forge 'https://artifactory-aaa.aaa.com/forge-repo' in the Puppetfile. At my Gemfile I'm using also the same forge repo.

One of the rules is to use only internal repos and I'm getting this error. How can I solve this?

Thanks

ZeroPointEnergy commented 5 years ago

I think this was already solved by https://github.com/voxpupuli/ra10ke/commit/c28e2047b36c04251dcb2157a0999f24d2d9955b and can probably be closed.

daberkow commented 7 months ago

This does not appear to be working, https://github.com/voxpupuli/ra10ke/blob/ec2c0c3995ff428ea5249abe68cb5821a316d7af/lib/ra10ke/dependencies.rb#L189 does not contain the forge updated content. If I hard set the PuppetForge.host variable there, then everything works as expected.

bastelfreak commented 7 months ago

@daberkow is that something you could provide a PR for?

daberkow commented 7 months ago

My solution was to add a new variable into the init of the library to allow overriding. Whenever I try to do something to properly pull it from 'puppetfile' I have issues. I also am on a Mac so I am running the 2.x branch because I think the 3.x requires a newer ruby version than ships with 14.4.

Happy to PR but I don't know if that's the fix you want.

daberkow commented 7 months ago

I have a commit up with the work, https://github.com/voxpupuli/ra10ke/compare/v2.0.0...daberkow:ra10ke:fix/2.0.0-override-forge?expand=1 is a comparison. As you can see, I am using the 2.0 branch because the Mac still ships with Ruby 2.6 and using that is important to me.