Closed prasadjlv closed 8 years ago
Yep, this is a Ruby 1.8.7 issue.
Is it possible to upgrade to Ruby 1.9.3 in your environment?
It's difficult to upgrade to Ruby 1.9.3 in our environments because of the tight version control, upstream yum repo and multiple systems involved. Is that my only option?
You can switch back to using a version of the module before the 1.8.7 imcompatible changes, which I believe is v1.0.5
Can you try using that and see if it works fro you?
I tried installing v1.0.5 and I'm got:
No releases matching '1.0.5' are available from https://forgeapi.puppetlabs.com
@prasadjlv 1.0.5 might the in the 'nanliu' namespace. What I would do is to change the file locally to use the 1.8.7 hash syntax.
@jyaworski thank you. Will do that.
@prasadjlv
What I would do is to change the file locally to use the 1.8.7 hash syntax.
How would I do this?
I am a newbie here, so please bear with me. I am observing this error on a CentOS 6.7 with ruby 1.8.7 (2013-06-27 patchlevel 374) [x86_64-linux], Puppet 3.8.3, and puppet-staging v1.0.6:
Error loading fact /etc/puppet/modules/staging/lib/facter/staging_windir.rb: /etc/puppet/modules/staging/lib/facter/staging_windir.rb:2: syntax error, unexpected ':', expecting kEND confine osfamily: :windows ^
What am I doing wrong? Is the above being caused by the ruby version?
Thank you in advance for any pointers.