Hello guys, I would like to configure my puppet to use "yum" instead "up2date" (default RHEL4). How can I do this? :) Thanks! -- Tiago Cruz Linux User #282636 Mandriva Conectiva PRO Certified Linux Instructor --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi On Oct 28, 7:37 pm, "Tiago Cruz" <tiago.tuxkil...@gmail.com> wrote:> I would like to configure my puppet to use "yum" instead "up2date" (default > RHEL4). > > How can I do this? :)Untested, but try this in your site.pp or other top-level manifest: Package { provider => "yum" } Note the capital P. Mark --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Tiago Cruz wrote:> Hello guys, > > I would like to configure my puppet to use "yum" instead "up2date" > (default RHEL4). > > How can I do this? :)http://reductivelabs.com/trac/puppet/wiki/TypeReference#package See the provider attribute. Regards James Turnbull - -- Author of: * Pulling Strings with Puppet (http://www.amazon.com/gp/product/1590599780/) * Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/) * Hardening Linux (http://www.amazon.com/gp/product/1590594444/) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJB5q19hTGvAxC30ARArYiAJ4ndo0z6X5VFuOWAiaeW5cKp3qgAACgv6jx fYyaL6BlaJMMLj2oVOH0CbQ=EKZT -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
If I understand ya, you probably want:
Package { provider => ''yum'' }
To set the defaults for all packages.
On 29/10/2008, at 8:37 AM, "Tiago Cruz"
<tiago.tuxkiller@gmail.com>
wrote:
> Hello guys,
>
> I would like to configure my puppet to use "yum" instead
> "up2date" (default RHEL4).
>
> How can I do this? :)
>
> Thanks!
>
> --
> Tiago Cruz
> Linux User #282636
> Mandriva Conectiva PRO Certified Linux Instructor
>
> >
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
Hey Aj, Thanks... but where I need put this? On Server? On Client? Could you give me a an example? :-) Many thanks! On Tue, Oct 28, 2008 at 9:41 PM, Aj <aj@junglist.gen.nz> wrote:> > If I understand ya, you probably want: > > Package { provider => ''yum'' } > > To set the defaults for all packages. > > On 29/10/2008, at 8:37 AM, "Tiago Cruz" <tiago.tuxkiller@gmail.com> > wrote: > > > Hello guys, > > > > I would like to configure my puppet to use "yum" instead > > "up2date" (default RHEL4). > > > > How can I do this? :) >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Tiago Cruz wrote:> Hey Aj, > > Thanks... but where I need put this? On Server? On Client? > > Could you give me a an example? :-)You put it in a manifest on your master. It is the example. This tells Puppet to use the yum provider for all package actions. Regards James Turnbull - -- Author of: * Pulling Strings with Puppet (http://www.amazon.com/gp/product/1590599780/) * Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/) * Hardening Linux (http://www.amazon.com/gp/product/1590594444/) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJCLwm9hTGvAxC30ARAlVfAJ4zkQK5BXhLyj8EOLEw147mrGTgIQCfaw90 dNWrXog/p1eMPDrepJvFciw=LVz2 -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
example :
class puppet {
case "$lsbdistid $lsbdistrelease" {
"RedHatEnterpriseES 4": {
package { puppet:
provider => yum,
ensure => latest;
...
On Wed, Oct 29, 2008 at 4:04 PM, Tiago Cruz
<tiago.tuxkiller@gmail.com>wrote:
> Hey Aj,
>
> Thanks... but where I need put this? On Server? On Client?
>
> Could you give me a an example? :-)
>
> Many thanks!
>
>
> On Tue, Oct 28, 2008 at 9:41 PM, Aj <aj@junglist.gen.nz> wrote:
>
>>
>> If I understand ya, you probably want:
>>
>> Package { provider => ''yum'' }
>>
>> To set the defaults for all packages.
>>
>> On 29/10/2008, at 8:37 AM, "Tiago Cruz"
<tiago.tuxkiller@gmail.com>
>> wrote:
>>
>> > Hello guys,
>> >
>> > I would like to configure my puppet to use "yum" instead
>> > "up2date" (default RHEL4).
>> >
>> > How can I do this? :)
>>
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
Thanks Guys! Works nice! ;) On Tue, Oct 28, 2008 at 6:09 PM, Mark Drayton <mdrayton@gmail.com> wrote:> > Hi > > On Oct 28, 7:37 pm, "Tiago Cruz" <tiago.tuxkil...@gmail.com> wrote: > > I would like to configure my puppet to use "yum" instead "up2date" > (default > > RHEL4). > > > > How can I do this? :) > > Untested, but try this in your site.pp or other top-level manifest: > > Package { > provider => "yum" > } > > Note the capital P. >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---