The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

Bug #15570

hiera-puppet/lib/hiera_puppet.rb does not installed by gem

Added by Ruslan Lutsenko almost 2 years ago. Updated over 1 year ago.

Status:ClosedStart date:07/17/2012
Priority:NormalDue date:
Assignee:Moses Mendoza% Done:

0%

Category:-
Target version:-
Keywords: Affected Hiera-Puppet Version:0.3.0
Branch:

We've Moved!

Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com

This issue is currently not available for export. If you are experiencing the issue described below, please file a new ticket in JIRA. Once a new ticket has been created, please add a link to it that points back to this Redmine ticket.


Description

After installation of hiera-puppet with gem, puppet return “no such file to load — hiera_puppet” Seem after refactoring Rakefile does not include hiera_puppet.rb

https://github.com/puppetlabs/hiera-puppet/commit/bdb8563b7f23dda54731c1f2db124a784c7db416

gem ins -r hiera-puppet
irb(main):001:0> require 'hiera_puppet'
LoadError: no such file to load -- hiera_puppet
    from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
    from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
    from (irb):1

After manually place this file in gem directory things get fixed.

puppetmaster lib # cp ./hiera_puppet.rb /usr/local/lib64/ruby/gems/1.8/gems/hiera-puppet-0.3.0/lib/
puppetmaster lib # irb
irb(main):001:0> require 'hiera_puppet'
=> true

Related issues

Duplicated by Hiera-Puppet - Bug #15918: Error: Could not run: no such file to load -- hiera_puppet Duplicate 08/10/2012

History

#1 Updated by Ruslan Lutsenko almost 2 years ago

It seem this issue appear only for gem for version 0.3.0 http://rubygems.org/gems/hiera-puppet

in hiera-puppet-1.0.0rc1.20 hiera_puppet.rb gets installed

Could you please fix gem for 0.3.0 at http://rubygems.org/gems/hiera-puppet

#2 Updated by Steve Traylen over 1 year ago

And for the same reason hiera_puppet.rb is missing from:

  • hiera-1.0.0-0.1rc4.el6.noarch
  • hiera-puppet-1.0.0-0.1rc2.el6.noarch

#3 Updated by Lee Lowder over 1 year ago

I’ve also ran into this problem, using hiera-puppet 1.0.0-0.1rc1-1-g3e68ff0 on Ubuntu 12.04 (32bit, “server”)

Also, can someone please update the ticket with /where/ to copy the file from for the fix mentioned? It’s impossible to tell where the source file is located…

#4 Updated by Matthaus Owens over 1 year ago

  • Description updated (diff)

Updated formatting.

#5 Updated by Matthaus Owens over 1 year ago

  • Status changed from Unreviewed to Accepted
  • Assignee set to Matthaus Owens

#6 Updated by Bryce Johnson over 1 year ago

I created this similar issue for the non-gem version: https://projects.puppetlabs.com/issues/15918

#7 Updated by Matthaus Owens over 1 year ago

  • Status changed from Accepted to In Topic Branch Pending Review

Gem didn’t seem to have the problem in our rcs, but debian and redhat did. This pull fixes up the redhat and debian packaging: https://github.com/puppetlabs/hiera-puppet/pull/46. Commit: https://github.com/haus/hiera-puppet/commit/fd3fe17894dbee11341e0888bad144e30c7fa156

#8 Updated by Matthaus Owens over 1 year ago

  • Assignee changed from Matthaus Owens to Moses Mendoza

#9 Updated by Moses Mendoza over 1 year ago

  • Status changed from In Topic Branch Pending Review to Merged - Pending Release

#10 Updated by Matthaus Owens over 1 year ago

  • Status changed from Merged - Pending Release to Closed

released in hiera-puppet 1.0.0rc3

Also available in: Atom PDF