> I am trying to add a property to the User type in order to be able to turn
> off the screen saver of the managed users. Everything I have found on custom
> types has been around creating an entirely new type rather than extending an
> existing one -- except for one sentence on the Custom Types page; 'You can
> optionally specify a parent class; otherwise, Puppet::Type is used as the
> parent class.'

I don't think you can add new properties or parameters to an existing
type. Not easily anyway.

What I would recommend, is creating a defined type/resource instead
that creates users - and add your functionality into that. You then
have a nice wrapper that you can customize. More or less defined types
work like ruby types anyway, and avoid a lot of code hassles that are
probably not required in your case:

http://docs.puppetlabs.com/learning/definedtypes.html

... unless you have a reason for needing a proper Ruby type?

ken.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to