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

Change forge repo used #24

Open
danielserrao opened this issue Jun 29, 2018 · 5 comments
Open

Change forge repo used #24

danielserrao opened this issue Jun 29, 2018 · 5 comments

Comments

@danielserrao
Copy link

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
Copy link
Contributor

I think this was already solved by c28e204 and can probably be closed.

@daberkow
Copy link

This does not appear to be working,

PuppetForge.host = puppetfile.forge if puppetfile.forge =~ /^http/
does not contain the forge updated content. If I hard set the PuppetForge.host variable there, then everything works as expected.

@bastelfreak
Copy link
Member

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

@daberkow
Copy link

daberkow commented Mar 13, 2024

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants