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? package { "MySQL-server-community": source => "puppet:///files/MySQL-server- community-5.1.40-0.rhel5.i386.rpm" } Thanks in advance --~--~---------~--~----~------------~-------~--~----~ 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, 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 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 -~----------~----~----~----~------~----~------~--~---
yes, it does, starting on my repo now. thanks On Nov 15, 6:52 pm, Avi Miller <avi.mil...@gmail.com> 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 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 -~----------~----~----~----~------~----~------~--~---
Chad Huneycutt
2009-Nov-17 22:50 UTC
Re: [Puppet Users] Re: Installing Packages from puppet files
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 <jete.okeeffe@gmail.com> wrote:> > yes, it does, starting on my repo now. > > thanks > > On Nov 15, 6:52 pm, Avi Miller <avi.mil...@gmail.com> 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 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 > -~----------~----~----~----~------~----~------~--~--- > >-- 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 puppet-users@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=.
Alternatively, you can use two-step approach to install RPM located at Puppet Master: 1. Copy the rpm file from Puppet Master to Puppet Agent 2. Install the rpm file on Puppet Agent from local path This looks like following: class ...{ ... package { ''python-boto'': ensure => installed, provider => ''rpm'', source => ''/tmp/python-boto.rpm'', require => File["/tmp/python-boto.rpm"], } file { "/tmp/python-boto.rpm": source => ''puppet:///modules/profile/python-boto-2.5.2-3.el6.noarch.rpm'', } ... } -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.