On Apr 16, 6:07 am, Sans <r.santanu....@gmail.com> wrote:
> Dear all,
>
> How can I create a yum repo like this?
>
> [rpmforge]
> name = RHEL $releasever - RPMforge.net - dag
> baseurl =http://apt.sw.be/redhat/el5/en/$basearch/rpmforge
> enabled = 1
> protect = 0
> gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
> gpgcheck = 1
>
> [rpmforge-extras]
> name = RHEL $releasever - RPMforge.net - extras
> baseurl =http://apt.sw.be/redhat/el5/en/$basearch/extras
> enabled = 0
> protect = 0


If the file exists before the Puppet run, then Puppet will not split
it up, but when Puppet creates a new repo definition it always goes
into its own file.  You could, however, concatenate the resulting
files after the fact, probably via an exec.  If having the repos in
multiple files bothers you, the go vote for bug #2062.

> I see, "descr" can't be used more than once in the same yumrepo{}
> section. What's the work around? Cheers!!

I didn't know this was a restriction.  If it is, then it will apply
whether you declare your Yumrepos in the same or different blocks.
There is no reason why it should need to be unique, so if you indeed
see such behavior then I'd file a ticket.

On the other hand, I cannot imagine why it would be important to have
identical "descr" properties for two or more distinct Yumrepos.  In
fact, I'm not even seeing why it would be a good idea.  The workaround
is to assign values that describe your repos specifically enough that
you have no duplicates.


John

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to