Ask Your Question
1

unfedined method - downcase

asked 2014-05-07 06:15:04 -0500

ondmagi gravatar image

I'm not quite sure this is the right forum to ask this question but anyway, here goes..

I get the an error when trying to apply a manifest/module to a server (appliance, delivered from a third party vendor, explaining the oldish versions of puppet/facter)

Versions in use (running custom SLES11.1 image):

# puppet --version
2.6.17
# facter --version
1.5.2
# ruby -v
ruby 1.8.7 (2011-12-28 patchlevel 357) [x86_64-linux]

Error given:

# puppet apply --verbose --debug --modulepath=/tmp/modules/ test.pp
info: Loading facts in pe_version
info: Loading facts in root_home
info: Loading facts in puppet_vardir
info: Loading facts in facter_dot_d
/usr/lib64/ruby/vendor_ruby/1.8/facter/util/confine.rb:37:in `true?': undefined method `downcase' for false:FalseClass (NoMethodError)
        from /usr/lib64/ruby/vendor_ruby/1.8/facter/util/confine.rb:36:in `each'
        from /usr/lib64/ruby/vendor_ruby/1.8/facter/util/confine.rb:36:in `true?'
        from /usr/lib64/ruby/vendor_ruby/1.8/facter/util/resolution.rb:101:in `suitable?'
        from /usr/lib64/ruby/vendor_ruby/1.8/facter/util/loader.rb:72:in `detect'
        from /usr/lib64/ruby/vendor_ruby/1.8/facter/util/resolution.rb:101:in `each'
        from /usr/lib64/ruby/vendor_ruby/1.8/facter/util/resolution.rb:101:in `detect'
        from /usr/lib64/ruby/vendor_ruby/1.8/facter/util/resolution.rb:101:in `suitable?'
        from /usr/lib64/ruby/vendor_ruby/1.8/facter/util/fact.rb:72:in `value'
        from /usr/lib64/ruby/vendor_ruby/1.8/facter/util/loader.rb:72:in `inject'
        from /usr/lib64/ruby/vendor_ruby/1.8/facter/util/fact.rb:71:in `each'
        from /usr/lib64/ruby/vendor_ruby/1.8/facter/util/fact.rb:71:in `inject'
        from /usr/lib64/ruby/vendor_ruby/1.8/facter/util/fact.rb:71:in `value'
        from /usr/lib64/ruby/vendor_ruby/1.8/facter/util/fact.rb:117:in `searching'
        from /usr/lib64/ruby/vendor_ruby/1.8/facter/util/fact.rb:67:in `value'
        from /usr/lib64/ruby/vendor_ruby/1.8/facter/util/collection.rb:104:in `to_hash'
        from /usr/lib64/ruby/vendor_ruby/1.8/facter/util/loader.rb:72:in `inject'
        from /usr/lib64/ruby/vendor_ruby/1.8/facter/util/collection.rb:103:in `each'
        from /usr/lib64/ruby/vendor_ruby/1.8/facter/util/collection.rb:103:in `inject'
        from /usr/lib64/ruby/vendor_ruby/1.8/facter/util/collection.rb:103:in `to_hash'
        from /usr/lib64/ruby/vendor_ruby/1.8/facter.rb:92:in `send'
        from /usr/lib64/ruby/vendor_ruby/1.8/facter.rb:92:in `to_hash'
        from /usr/lib64/ruby/vendor_ruby/1.8/puppet/indirector/facts/facter.rb:71:in `find'
        from /usr/lib64/ruby/vendor_ruby/1.8/puppet/indirector/indirection.rb:188:in `find'
        from /usr/lib64/ruby/vendor_ruby/1.8/puppet/indirector.rb:50:in `find'
        from /usr/lib64/ruby/vendor_ruby/1.8/puppet/application/apply.rb:88:in `main'
        from /usr/lib64/ruby/vendor_ruby/1.8/puppet/application/apply.rb:35:in `run_command'
        from /usr/lib64/ruby/vendor_ruby/1.8/puppet/application.rb:305:in `run'
        from ...
(more)
edit retag flag offensive close merge delete

Comments

1

Are you able to find the source for facter 1.5? Facter 1.6 is the oldest branch on github https://github.com/puppetlabs/facter/blob/1.6.x/lib/facter/util/confine.rb

spuder gravatar imagespuder ( 2014-05-07 11:05:51 -0500 )edit
1

Could the module you're using possibly depend on facter 2? Because if you need to stringify something, that may be a clue. In facter 1, everything was a string, so it would make sense that this assumption fails. But then, this may be a red herring.

ffrank gravatar imageffrank ( 2014-05-08 06:49:14 -0500 )edit

@ffrank - Might be it. I'm depending on puppetlabs/stdlib and using a fairly new version of it. I'll definitely look into it.

ondmagi gravatar imageondmagi ( 2014-05-09 05:09:54 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-05-08 02:41:05 -0500

ondmagi gravatar image

updated 2014-05-08 10:47:37 -0500

spuder gravatar image

@spuder - yeah, unfortunately I noticed that as well. Guess I might have to bite the bullet (not really since it's a good thing) and update the puppet/facter packages. The only concern I have about that is that I'm modifying the "appliance image", but that's not really related to the subject.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-05-07 06:15:04 -0500

Seen: 413 times

Last updated: May 08 '14