Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Error loading staging_windir.rb #94

Closed
prasadjlv opened this issue May 13, 2016 · 7 comments
Closed

Error loading staging_windir.rb #94

prasadjlv opened this issue May 13, 2016 · 7 comments

Comments

@prasadjlv
Copy link

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
Copy link
Member

petems commented May 13, 2016

Yep, this is a Ruby 1.8.7 issue.

Is it possible to upgrade to Ruby 1.9.3 in your environment?

voxpupuli/plumbing#36

@prasadjlv
Copy link
Author

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
Copy link
Member

petems commented May 13, 2016

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
Copy link
Author

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

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

@jyaworski
Copy link
Member

jyaworski commented May 13, 2016

@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
Copy link
Author

@jyaworski thank you. Will do that.

@nomoresecrets
Copy link

@prasadjlv

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

How would I do this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants