voxpupuli / puppet-staging

⛔️ Deprecated in favor of puppet-archive
https://forge.puppet.com/puppet/archive
Apache License 2.0
51 stars 109 forks source link

Error loading staging_windir.rb #94

Closed prasadjlv closed 8 years ago

prasadjlv commented 8 years ago

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.

petems commented 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?

https://github.com/voxpupuli/plumbing/issues/36

prasadjlv commented 8 years ago

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?

petems commented 8 years ago

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?

prasadjlv commented 8 years ago

I tried installing v1.0.5 and I'm got:

No releases matching '1.0.5' are available from https://forgeapi.puppetlabs.com

jyaworski commented 8 years ago

@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.

prasadjlv commented 8 years ago

@jyaworski thank you. Will do that.

nomoresecrets commented 8 years ago

@prasadjlv

What I would do is to change the file locally to use the 1.8.7 hash syntax.

How would I do this?