Issue #2062 has been updated by Charlie Sharpsteen. Status changed from Accepted to Duplicate Assignee set to Charlie Sharpsteen Keywords set to prefetch
I suspect the problem showing up here is #1238 --- which is that, due to pre-fetching, the Yumrepo can't properly manage `*.repo` files created by other sources such as packages. Yumrepo can only manage repository definitions that it bears the sole responsibility for creating. Closing as a duplicate as the type does appear to correctly manage multiple definitions in a single file --- just not files that are created by another resource during the same puppet run. ---------------------------------------- Bug #2062: yumrepo resource does not support multiple repos per file https://projects.puppetlabs.com/issues/2062#change-99903 * Author: Trevor Hemsley * Status: Duplicate * Priority: Low * Assignee: Charlie Sharpsteen * Category: yumrepo * Target version: * Affected Puppet version: 0.24.7 * Keywords: prefetch * Branch: ---------------------------------------- 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://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/groups/opt_out.
