Thanks! In my case it is:
Package { provider => "aptrpm" }
$ ls -l /usr/lib/ruby/site_ruby/1.8/puppet/provider/package/*.rb
-rw-r--r-- 1 root root 4309 Mar 23 22:48 appdmg.rb
-rw-r--r-- 1 root root 1605 Mar 23 22:48 apple.rb
-rw-r--r-- 1 root root 881 Mar 23 22:48 aptitude.rb
-rw-r--r-- 1 root root 3362 Mar 23 22:48 apt.rb
-rw-r--r-- 1 root root 2197 Mar 23 22:48 aptrpm.rb
-rw-r--r-- 1 root root 3034 Mar 23 22:48 blastwave.rb
-rw-r--r-- 1 root root 2172 Mar 23 22:48 darwinport.rb
-rw-r--r-- 1 root root 3675 Mar 23 22:48 dpkg.rb
-rw-r--r-- 1 root root 2141 Mar 23 22:48 fink.rb
-rw-r--r-- 1 root root 1633 Mar 23 22:48 freebsd.rb
-rw-r--r-- 1 root root 3632 Mar 23 22:48 gem.rb
-rw-r--r-- 1 root root 1130 Mar 23 22:48 hpux.rb
-rw-r--r-- 1 root root 2622 Mar 23 22:48 openbsd.rb
-rw-r--r-- 1 root root 5158 Mar 23 22:48 pkgdmg.rb
-rw-r--r-- 1 root root 4790 Mar 23 22:48 portage.rb
-rw-r--r-- 1 root root 2632 Mar 23 22:48 ports.rb
-rw-r--r-- 1 root root 4368 Mar 23 22:48 rpm.rb
-rw-r--r-- 1 root root 1446 Mar 23 22:48 rug.rb
-rw-r--r-- 1 root root 438 Mar 23 22:48 sunfreeware.rb
-rw-r--r-- 1 root root 4691 Mar 23 22:48 sun.rb
-rw-r--r-- 1 root root 1180 Mar 23 22:48 up2date.rb
-rw-r--r-- 1 root root 1517 Mar 23 22:48 urpmi.rb
-rw-r--r-- 1 root root 3192 Mar 23 22:48 yum.rb
$
On Thu, Jun 18, 2009 at 10:49 AM, Nigel Kersten <nigelk@google.com> wrote:
>
>
> On Thu, Jun 18, 2009 at 2:26 AM, hyde <haiwu.us@gmail.com> wrote:
>
>>
>> I have puppet client on centos5, but we don''t use yum to
install
>> packages, we use apt-rpm to install packages, so it would be
''apt-get
>> install packagename'' instead of ''yum install
packagename''.
>>
>> How can I customize puppet for the above?
>
>
> for a specific package:
>
> package { "foo":
> provider => "apt-rpm",
> ...
> }
>
> to make this the default for all packages unless overriden in a specific
> package resource definition:
>
> Package { provider => "apt-rpm" }
>
>
>
http://reductivelabs.com/trac/puppet/wiki/LanguageTutorial#resource-defaults
>
>
>
>
>>
>> Thanks,
>> Hai
>>
>>
>>
>
>
> --
> Nigel Kersten
> nigelk@google.com
> System Administrator
> Google, Inc.
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---