I'm using Geppetto and it's complaining about the line $group = $user. $user is not defined anywhere else in the upper scopes except as the other parameter of the define. Is this allowed in Puppet? And if yes, from which version?
As far as I remember at some point Puppet didn't support it.

1 Answer

Without seeing the rest of the module I'm assuming $user is specified somewhere as the user that will install rbenv locally. I'm not sure why Gepetto is complaining, but the code you've posted looks correct. You might try replacing $title with $name and see if they clears the warning.

fwiw, puppet-lint and puppet parser validate don't kick out any errors or warnings.

EDIT: The problem is that $name (or $title) is an internal variable on the resource. Here's a simple example. $name is www.example.com all the way through the example.