Creating your own repo obviously will come in handy, but here is
another option. The problem is that the default package provider you
are using (probably yum) does not support the puppet protocol for
retrieving packages. What I have done in a couple of cases is put the
package on a web server and just use the "rpm" provider to snag it
from there:
package { "MySQL-server-community":
provider => rpm,
ensure => installed,
source => "http://myserver.com/rpms/MySQL-server-
community-5.1.40-0.rhel5.i386.rpm"
}
On Mon, Nov 16, 2009 at 4:01 PM, jokeeffe <[email protected]> wrote:
>
> yes, it does, starting on my repo now.
>
> thanks
>
> On Nov 15, 6:52 pm, Avi Miller <[email protected]> wrote:
>> Hi,
>>
>> jokeeffe wrote:
>> > Hi, I'm a puppet newbie. Is there a way to install an rpm from the
>> > files served by the puppet master? If so, what am I doing wrong (see
>> > below)? If this isn't possible, how should I be installing custom
>> > rpms?
>>
>> High-level explanation:
>>
>> You need to create a Yum repository for your custom RPMs (using the
>> createrepo tool) on a accessible webserver somewhere on your network.
>> You could put this on the puppet master itself if you want.
>>
>> You can then use the yumrepo puppet type to configure that repository on
>> your puppet clients. Once you've done that, you can use the package type
>> to install RPMs from that repository.
>>
>> You should use a requires parameter on your package type to ensure the
>> yumrepo is configured first.
>>
>> Hope that makes sense,
>> Avi
> --~--~---------~--~----~------------~-------~--~----~
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en
> -~----------~----~----~----~------~----~------~--~---
>
>
--
Chad M. Huneycutt
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=.