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

Let Librarian Puppet work without connectivity to a Forge #325

Open
gbarton opened this issue Sep 24, 2015 · 4 comments
Open

Let Librarian Puppet work without connectivity to a Forge #325

gbarton opened this issue Sep 24, 2015 · 4 comments

Comments

@gbarton
Copy link

gbarton commented Sep 24, 2015

I'm attempting to use librarian-puppet in an environment that cannot reach puppet forge. (I have no need of an internal forge.)

What I would like to do is just have librarian-puppet interact with git and not forge at all. Is this doable via config currently? It looks like LP is blowing up trying to resolve the module when I do an install, even though I have specified the module as a git one:

mod 'ntp',
:git => "git://bla.bla.bla//puppet/ntp.git"

@frelind
Copy link

frelind commented Sep 25, 2015

It's probably because you have a dependency in your metadata.json in the ntp module which is missing in your modulepath and librarian puppet tries to resolve the dependency from forge.

@gbarton
Copy link
Author

gbarton commented Sep 25, 2015

Thank you for the reply.
​Within the Puppetfile I removed the metadata.json and the modulefile, I am
just defining within the Puppetfile itself. Here is my current test config:

#!/usr/bin/env ruby
#^syntax detection

​mod 'ntp',
:git => 'git@bla.bla.bla:puppet-modules/ntp.git'

On Sep 25, 2015 7:58 AM, "Fredrik Lindgren" notifications@github.com
wrote:

It's probably because you have an dependency in your metadata.json for the
ntp module and librarian-puppet tries to download it from forge.


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

@frelind
Copy link

frelind commented Sep 26, 2015

Check inside your ntp module for a metadata.json file and if there's a dependency for another module there.

@trevor-vaughan
Copy link

Hi there. I would also like this feature.

I would like to be able to use a Forge in some cases, but disable forge dependency resolution in other cases.

I took a look at the code, but didn't see a straightforward method for making this happen. Pointers would be appreciated.

trevor-vaughan added a commit to trevor-vaughan/librarian-puppet that referenced this issue Nov 28, 2015
This update adds support for using librarian puppet without a forge.

Setting the LIBRARIAN_PUPPET_USE_FORGE binary option in one of the
configuration files will prevent the utility from reaching out to a
forge for dependency resolution.

Fixes rodjek#325
trevor-vaughan added a commit to trevor-vaughan/librarian-puppet that referenced this issue Dec 16, 2015
This update adds support for using librarian puppet without a forge.

Setting the LIBRARIAN_PUPPET_USE_FORGE binary option in one of the
configuration files will prevent the utility from reaching out to a
forge for dependency resolution.

Fixes rodjek#325
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

3 participants