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 class is not singleton #17

Closed
zachfi opened this issue Oct 15, 2013 · 1 comment
Closed

Ruby class is not singleton #17

zachfi opened this issue Oct 15, 2013 · 1 comment

Comments

@zachfi
Copy link
Contributor

zachfi commented Oct 15, 2013

For anyone using Ruby in their environments, using the r10k module presents a problem because of the way that ruby is included. It basically means that anyone doing an 'include ruby' anywhere in their puppet code is going to get a duplicate resource error.

Moving the to 'include ruby' here means that people can use ruby elsewhere also, though it doesn't solve the parameter being passed.

@acidprime
Copy link
Collaborator

Well for the time being we could wrap it to check the version of puppet as the parent bug of my original reference bug that required is not relevant for for anything thats not 3.2.3+

if versioncmp($::puppetversion,'3.2.2') > 0 {
  class { '::ruby':
    rubygems_update => false,
  }
} else {
  include ruby
}

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