Never mind.

Apparently the answer is to use the "descr" option in yumrepo, not the
name option.

It would be nice if the documentation made any mention of this.

http://reductivelabs.com/trac/puppet/wiki/TypeReference#descr

On Fri, Dec 4, 2009 at 1:50 PM, Bryan Schneiders
<bryan.schneid...@gmail.com> wrote:
> I'm using puppet-0.24.8-4.el5 on CentOS 5.4.
>
> My problem is yumrepo isn't writing the "name=" field to the
> repository files which causes yum to complain with the error:
>
> Repository 'local-CentOS-5.4-x86_64' is missing name in configuration,
> using id
>
> I get this behavior on all of my yumrepo definitions.  One of them
> looks like this:
>
>    yumrepo {
>    "local-$lsbdistid-$release-$architecture":
>        name => "local-$lsbdistid-$release-$architecture",
>        baseurl => "http://hostname.changed.com:80/cobbler/ks_mirror/
> $lsbdistid-$release-$architecture",
>        enabled => 1,
>        gpgcheck => 0,
>        priority => 10;
>    }
>
> and the resulting file contents are:
>
> [local-CentOS-5.4-x86_64]
> baseurl=http://hostname.changed.com:80/cobbler/ks_mirror/CentOS-5.4-
> x86_64
> enabled=1
> gpgcheck=0
> priority=10
>
> I can't find any mailing list discussions or bug reports on this.  Can
> anyone verify this behavior on other versions of puppet?

--

You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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