Issue #2062 has been updated by Steven Roberts.

I have been doing a bunch of looking/work with this.  yes it looks like unless 
you put in 'desc' attributes in your yumrepo resources it really messes up the 
.repo files.

If you do add in 'desc' settings it does look like it deals okay with the 
existing .repo files.

It does look like yumrepo is not fully handling the yum repo syntax  it doesn't 
like 'enabled = 1'.  must be 'enabled=1' so it gives you a run like:

Notice: /Stage[main]/Yumrepo[rpmforge]/enabled: enabled changed ' 1' to '1'

Probably should note the importance of the 'desc' attribute in the type 
reference documentation.
----------------------------------------
Bug #2062: yumrepo resource does not support multiple repos per file
https://projects.puppetlabs.com/issues/2062#change-79688

Author: Trevor Hemsley
Status: Accepted
Priority: Low
Assignee: 
Category: yumrepo
Target version: 
Affected Puppet version: 0.24.7
Keywords: 
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 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.

Reply via email to