On Fri, May 8, 2009 at 1:41 AM, Peter Meier <peter.me...@immerda.ch> wrote: > > Hi > >> yumrepo { "pic": >> baseurl => >> "http://server/mrepo/local-PIC-noarch/RPMS.pic/", >> descr => "pic", >> name => "pic", >> enabled => absent, >> } >> >> *i also tried with "absent" and ' absent' . > > I think it is ensure => absent > > enable is to disable the repo, but to keep the information on disk. > However the type seems to assume enable => true for every option > different than false or 0. > >> so, default option in site.pp is mandataory for the type? > > I don't think so. However if you look at the yum-module I wrote > (http://git.puppet.immerda.ch/?p=module-yum.git) I manage the whole > directory of yum.repos.d to get rid off unmanaged repos. > > cheers pete. Nice module may use it. Looking over it I did find one minor issue with the epel source:
yum::managed_yumrepo { epel-source: descr => 'Extra Packages for Enterprise Linux $releasever - $basearch - Source', mirrorlist => 'http://mirrors.fedoraproject.org/mirrorlist?repo=epel-source-$releasever&arch=$basearch', enabled => 1, gpgcheck => 1, failovermethod => priority, failovermethod => 'priority', gpgkey => 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL', priority => 16, As you can see you have 2 failovermethod => 'priority' entries. Nothing big thought you might want to know.. Evan --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---