On Apr 7, 2013, at 11:59 AM, tio teath <[email protected]> wrote:

> I would like to use Puppet::Type::File as a base type, and add some custom 
> properties to it without modifying original code, i.e. using separate module 
> under puppet Puppet[:libdir]. What is best approach to achieve this?

Hi,

This might be possible, but probably will be more annoying than you want.  If 
that's not enough warning, though...

You can *probably* create a new type and set ':parent => :file' in that type.  
There used to be an option to retain most/all of the attributes (I used this 
for 'tidy' before I refactored it a long time ago), but I can't seem to find it 
now.  That makes me even less confident that this will work well.

Can you elaborate on what you're trying to do, and why?

-- 
Luke Kanies | http://about.me/lak | http://puppetlabs.com/ | +1-615-594-8199
Join us at PuppetConf 2013, August 22-23 in San Francisco - 
http://bit.ly/pupconf13

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-dev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to