Issue #2062 has been updated by TrevorHemsley.
My vanilla Centos 5 installation installs a single file, /etc/yum.repos.d/CentOS-Base.repo that contains several repos, base, updates, addons, extras and centosplus. If I try to enable/disable any of these using puppet yumrepo definitions then they will create new files called the name of the individual repo and will clash with the contents of the file shipped by Centos. The behaviour I was expecting was that puppet would find the repo inside a file and use that in preference to creating a new one. Centos themselves ship repo files that contain multiple repos so I think you have to treat that as accepted practice and work out how to manage them. ---------------------------------------- Bug #2062: yumrepo resource does not support multiple repos per file http://projects.reductivelabs.com/issues/2062 Author: TrevorHemsley Status: Accepted Priority: Low Assigned to: community Category: yumrepo Target version: unplanned Complexity: Unknown Affected version: 0.24.7 Keywords: Many of the files in /etc/yum.repos.d on Centos/Redhat contain multiple repos within a single file. Using the yumrepo resource it is not possible to manage the contents of these files. Example: Cobbler installs a file called /etc/yum.repos.d/cobbler-config.repo which contains <pre> name=core-0 baseurl=http://your.url:80/cobbler/ks_mirror/Centos5.2-i386 enabled=1 gpgcheck=1 [Centos5-x86_64-UPDATES] name=Centos5-x86_64-UPDATES baseurl=http://your.url:80/cobbler/repo_mirror/Centos5-i386-UPDATES enabled=1 gpgcheck=1 </pre> Defining a yumrepo {"core-0":} allows you to manage the first of these repos inside the file but if you attempt to define a yumrepo {"Centos5-x86_64-UPDATES": } resource then puppet will create a new file containing a duplicate definition. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://reductivelabs.com/redmine/my/account --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Bugs" 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-bugs?hl=en -~----------~----~----~----~------~----~------~--~---
