You can do both.

As an introductory tutorial, have a look at
http://www.kartar.net/2010/02/puppet-types-and-providers-are-easy/
and, more information at http://docs.puppetlabs.com/#extending_puppet

On Sep 9, 1:27 pm, SiD <self...@gmail.com> wrote:
> Thanks for your quick answer.
> I've already analysed the code, but it does not really help me. Do I
> need to write a new provider in Ruby, or can I override the original
> one ?
>
> Thanks again !
>
> On Sep 8, 10:45 am, mohit chawla <mohit.chawla.bin...@gmail.com>
> wrote:
>
> > You can probably start by looking at the code for the various
> > types/providers under puppet's code directory. On Debian, for eg., the code
> > for rpm package provider is under
> > /usr/lib/ruby/1.8/puppet/provider/package/rpm.rb .
>
> > On Wed, Sep 8, 2010 at 1:40 PM, SiD <self...@gmail.com> wrote:
> > > Hello,
>
> > > I would like to go in depth with Puppet, but I haven't found any good
> > > documentation about my issue (I've just ordered the official Puppet
> > > book, hope it helps).
> > > I need to install RPM packages with specified install-options, like --
> > > prefix. But the package type does not support this kind of option.
> > > Does anyone have an idea how to redefine a type ?
>
> > > Thanks !
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Puppet Users" group.
> > > To post to this group, send email to puppet-us...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > puppet-users+unsubscr...@googlegroups.com<puppet-users%2bunsubscr...@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/puppet-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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