Install dependencies for (puppet) environment fails

When attempting to install dependencies for my puppet environment, I get the following output:

/home/john/.rvm/rubies/ruby-2.4.0/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /home/john/.rvm/gems/ruby-2.4.0/bin/librarian-puppet install --verbose --path=site
[Librarian] Ruby Version: 2.4.0
[Librarian] Ruby Platform: x86_64-linux
[Librarian] Rubygems Version: 2.6.8
[Librarian] Librarian Version: 0.6.3
[Librarian] Librarian Adapter: puppet
[Librarian] Librarian Adapter Version: 2.2.3
[Librarian] Project: /media/sf_Shared/RubymineProjects/puppet_RM_testing/control-repo
[Librarian] Specfile: Puppetfile
[Librarian] Lockfile: Puppetfile.lock
[Librarian] Git: /usr/bin/git
[Librarian] Git Version: 2.7.4
[Librarian] Git Environment Variables:
[Librarian] (empty)
[Librarian] Pre-Cached Sources:
Replacing Puppet Forge API URL to use v3 https://forgeapi.puppetlabs.com. You should update your Puppetfile
unrecognized options: tag
/home/john/.rvm/gems/ruby-2.4.0/gems/librarianp-0.6.3/lib/librarian/source/basic_api.rb:36:in `from_spec_args'
/home/john/.rvm/gems/ruby-2.4.0/gems/librarianp-0.6.3/lib/librarian/dsl/target.rb:149:in `source_from_params'
/home/john/.rvm/gems/ruby-2.4.0/gems/librarianp-0.6.3/lib/librarian/dsl/target.rb:140:in `source_from_options'
/home/john/.rvm/gems/ruby-2.4.0/gems/librarianp-0.6.3/lib/librarian/dsl/target.rb:60:in `dependency'
/home/john/.rvm/gems/ruby-2.4.0/gems/librarianp-0.6.3/lib/librarian/dsl/receiver.rb:11:in `block (2 levels) in initialize'
/media/sf_Shared/RubymineProjects/puppet_RM_testing/control-repo/Puppetfile:3:in `run'
/home/john/.rvm/gems/ruby-2.4.0/gems/librarianp-0.6.3/lib/librarian/dsl/receiver.rb:33:in `instance_eval'
/home/john/.rvm/gems/ruby-2.4.0/gems/librarianp-0.6.3/lib/librarian/dsl/receiver.rb:33:in `run'
/home/john/.rvm/gems/ruby-2.4.0/gems/librarian-puppet-2.2.3/lib/librarian/puppet/dsl.rb:47:in `run'
/home/john/.rvm/gems/ruby-2.4.0/gems/librarianp-0.6.3/lib/librarian/dsl.rb:95:in `block in run'
/home/john/.rvm/gems/ruby-2.4.0/gems/librarianp-0.6.3/lib/librarian/dsl.rb:85:in `tap'
/home/john/.rvm/gems/ruby-2.4.0/gems/librarianp-0.6.3/lib/librarian/dsl.rb:85:in `run'
/home/john/.rvm/gems/ruby-2.4.0/gems/librarianp-0.6.3/lib/librarian/dsl.rb:17:in `run'
/home/john/.rvm/gems/ruby-2.4.0/gems/librarianp-0.6.3/lib/librarian/environment.rb:148:in `dsl'
/home/john/.rvm/gems/ruby-2.4.0/gems/librarianp-0.6.3/lib/librarian/specfile.rb:15:in `read'
/home/john/.rvm/gems/ruby-2.4.0/gems/librarianp-0.6.3/lib/librarian/action/resolve.rb:13:in `run'
/home/john/.rvm/gems/ruby-2.4.0/gems/librarian-puppet-2.2.3/lib/librarian/puppet/action/resolve.rb:10:in `run'
/home/john/.rvm/gems/ruby-2.4.0/gems/librarian-puppet-2.2.3/lib/librarian/puppet/cli.rb:104:in `resolve!'
/home/john/.rvm/gems/ruby-2.4.0/gems/librarian-puppet-2.2.3/lib/librarian/puppet/cli.rb:68:in `install'
/home/john/.rvm/gems/ruby-2.4.0/gems/thor-0.19.4/lib/thor/command.rb:27:in `run'
/home/john/.rvm/gems/ruby-2.4.0/gems/thor-0.19.4/lib/thor/invocation.rb:126:in `invoke_command'
/home/john/.rvm/gems/ruby-2.4.0/gems/thor-0.19.4/lib/thor.rb:369:in `dispatch'
/home/john/.rvm/gems/ruby-2.4.0/gems/thor-0.19.4/lib/thor/base.rb:444:in `start'
/home/john/.rvm/gems/ruby-2.4.0/gems/librarianp-0.6.3/lib/librarian/cli.rb:26:in `block (2 levels) in bin!'
/home/john/.rvm/gems/ruby-2.4.0/gems/librarianp-0.6.3/lib/librarian/cli.rb:31:in `returning_status'
/home/john/.rvm/gems/ruby-2.4.0/gems/librarianp-0.6.3/lib/librarian/cli.rb:26:in `block in bin!'
/home/john/.rvm/gems/ruby-2.4.0/gems/librarianp-0.6.3/lib/librarian/cli.rb:47:in `with_environment'
/home/john/.rvm/gems/ruby-2.4.0/gems/librarianp-0.6.3/lib/librarian/cli.rb:26:in `bin!'
/home/john/.rvm/gems/ruby-2.4.0/gems/librarian-puppet-2.2.3/bin/librarian-puppet:7:in `<top (required)>'
/home/john/.rvm/gems/ruby-2.4.0/bin/librarian-puppet:22:in `load'
/home/john/.rvm/gems/ruby-2.4.0/bin/librarian-puppet:22:in `<top (required)>'
-e:1:in `load'
-e:1:in `<main>'

Process finished with exit code 1

It looks like puppet-librarian has found my Puppetfile, but I'm not sure why the .dependencies directory is not created at the end of that function's execution.

4 comments
Comment actions Permalink

Hello, could you please share your Puppetfile? If it's private information, you could send me via e-mail: Anna.Kutarba@jetbrains.com.

0
Comment actions Permalink

Hi Anna.  Here's a copy of my Puppetfile. I've renamed the FQDN of the SCM tool to mask sensitive data.

 

forge "http://forge.puppetlabs.com"

mod 'puppet_agent',
:git => 'git@some.url.com:modules/puppetlabs-puppet_agent.git',
:tag => '1.3.1'

mod 'stdlib',
:git => 'git@some.url.com:modules/puppetlabs-stdlib.git',
:tag => 'v4.9.0'

mod 'selinux',
:git => 'git@some.url.com:modules/jfryman-selinux.git',
:tag => 'v0.2.6'

mod 'windowsfeature',
:git => 'git@some.url.com:modules/puppet-windowsfeature.git',
:tag => 'v1.0.0'
0
Comment actions Permalink

Thank you very much for sharing this example. Could you please try to run librarian-puppet with another Ruby version, i.e. with Ruby 2.3.3? Let us know how it goes? 

0
Comment actions Permalink

Hi,

 

you are using an r10k/code manager style Puppetfile. Unfortuenatly that is not compatible with librarian-puppet. There was a recent pull request to librarian-puppet to make it r10k Puppetfile aware, but the version that includes the pull request has not yet been released.

 

Regards

 

Benny

0

Please sign in to leave a comment.