I administer both RHEL4 and 5 with puppet, and all the software is on a local yum mirror.
I use the yumrepo type in my base class, which all others depend on, and use some facts from facter to generate a uniq repo path based on both the version and architecture. I use something like this; baseurl => "http://<something>/$operatingsystem/ $operatingsystemrelease/$architecture/". For a RHEL4 running on i386, this becomes "http://<something>/redhat/4/ i386/" I would suggest running facter and creating a path that matches your mindset for you repository, but for me this has worked very well so far. In the same class that enables this, you should also remember to disable your kewrepos.repo, or the result of a update could be rather "interesting". :-) I hope this helps! BR. Rune Stensø On 29 Apr, 17:14, "[email protected]" <[email protected]> wrote: > I'm running puppet 0.24.6 on CentOS 5.2 from a puppetmaster on a > virtual server to a variety > of client servers both virtual and metal running either CentOS 5.2 or > Fedora Core 10. I want to > extend this to servers running RHEL 5 (and 6) in the near future. > > My problem is I have puppet set up with all repositories (mirrored > locally using cobbler) > included in one file in /etc/yum.repos.d/kewrepos.repo on the > puppermaster. This file contains > both Centos and Fedora repos and when I run a yum update I just -- > disablerepo=whichever I don't want, > which can be done as a cron job. > > The difficulty is sometimes puppet runs yum automatically, which loops > on a CentOS webserver > trying to reinstall httpd, getting confused by the presence of Fedora > repositories. > > My question is how can I set up puppet so that I can tell, once and > for all, The Fedora boxes to > look at the Fedora repos and the CentOS boxes to CentOS repos only? I > want to be able to > configure unlimited repos in the future for workstations (Fedora) and > servers (CentOS or RHEL). > > Thanks in advance > > Tim Kendall > > I just added Kew Gardens where I work to your Wiki list of users --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
