rnelson0 / puppet-generate-puppetfile

Generate or update a Puppetfile for use with r10k or librarian-puppet. Optionally, create a fixtures file for rspec-puppet.
92 stars 22 forks source link

Is it not working? #21

Closed feniix closed 8 years ago

feniix commented 8 years ago

Am I doing something wrong? image

rnelson0 commented 8 years ago

Hrm, I'm not sure. Here's what I get:

[rnelson0@build03 controlrepo:domainjoin]$ be generate-puppetfile --version
generate-puppetfile v0.9.6
[rnelson0@build03 controlrepo:domainjoin]$ be generate-puppetfile echocat/nfs rnelson0/certs

Installing modules. This may take a few minutes.

Your Puppetfile has been generated. Copy and paste between the markers:

=======================================================================
forge 'http://forge.puppetlabs.com'

# Modules discovered by generate-puppetfile
mod 'echocat/nfs', '1.8.1'
mod 'puppetlabs/concat', '1.2.5'
mod 'puppetlabs/stdlib', '4.11.0'
mod 'rnelson0/certs', '0.7.0'
=======================================================================

(where be is bundle exec). It is calling out to puppet module install. You can try running generate-puppetfile -d <args> or directly calling puppet module install echocat/nfs and looking for errors. This tool does swallow up a lot of error messages in its current state, and may still swallow a few even in debug mode.

feniix commented 8 years ago

I know what is going on, if puppet is not working for any reason it just fails silently:

image

Which is an unlikely case, but it could happen.

rnelson0 commented 8 years ago

Yes, that is something that is important and the error should not be swallowed. I will add this to the roadmap.

Rob Nelson rnelson0@gmail.com

rnelson0 commented 8 years ago

I will track this in #19