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.'

With that in mind, in theory, something like this should work

Puppet::Type.newtype(:extended_windows_user, {:parent => Puppet::Type::User}) do
  newproperty(:screensaver_enabled) do
    desc "boilerplate"
  end
end

but when I run the agent the manifest cannot be compiled saying

Invalid parameter managehome at ...

which I would have expected it to find since it is in the :parent. And does work if I use 'user' rather than 'extended_windows_user' in my manifest.

Is there some missing bit of inheritance magic I am missing? I've been staring at this now for long enough that even if the solution was right in front of me I would mess it.

Thanks.

-adam

--
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