Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruby 1.8 support #148

Closed
solarnz opened this issue Jul 8, 2015 · 1 comment
Closed

Ruby 1.8 support #148

solarnz opened this issue Jul 8, 2015 · 1 comment

Comments

@solarnz
Copy link

solarnz commented Jul 8, 2015

Ruby 1.8 isn't supported at the moment, as within https://github.com/solarkennedy/puppet-consul/blob/master/lib/puppet/parser/functions/consul_validate_checks.rb, it is trying to call 'Puppet::ParseError' as a function. Which results in

undefined method `ParseError' for Puppet:Module at /etc/puppet/ext_modules/consul/manifests/service.pp:36 on node ip-172-18-0-234.ec2.internal

It appears that I can fix this by using raise(Puppet::ParseError, 'message') rather than raise Puppet::ParseError('message'), however I'm not a ruby developer so I'm not sure if this is the correct change to make or not.

Ruby 1.8 is the default ruby on Ubuntu 12.04 (which is why this is causing me issues). Would you be interested in a patch to fix support for 1.8 on this system configuration?

@solarkennedy
Copy link
Contributor

Totally! One of the hardest problems is ensuring that "json" is available.

We don't currently have 1.8 supported in the matrix:
https://github.com/solarkennedy/puppet-consul/blob/master/.travis.yml

So if you can make changes that make it support 1.8 and not break forwards compatibility, go for it!

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

No branches or pull requests

2 participants