On Tue, Nov 15, 2011 at 03:49:57PM +0100, Arnau Bria wrote:
> Hi all,
> 
> Seems that ensure     => absent is not working on puppet 2.6.12
> yumrepo type.
> 
> 'sl-5.5-base' :
>       baseurl => 'http://reposerver/computing-SL-55-base-x86_64/RPMS.base/',
>       descr   => 'SL 5.5 base',
>       enabled => absent,
>       exclude => 'yum-conf* c-ares';
> 
> # ls -lsa /etc/yum.repos.d/sl-5.5-base.repo 
> 4 -rw-r--r-- 1 root root 187 Nov 15 15:35 /etc/yum.repos.d/sl-5.5-base.repo
> 
> #puppetd --test --server $server
> [...]
> info: create new repo sl-5.5-base in file /etc/yum.repos.d/sl-5.5-base.repo
> notice: 
> /Stage[pre]/Common::Os::Release5::Sl55::Repos/Yumrepo[sl-5.5-base]/descr: 
> descr changed '' to 'SL 5.5 base'
> notice: 
> /Stage[pre]/Common::Os::Release5::Sl55::Repos/Yumrepo[sl-5.5-base]/baseurl: 
> baseurl changed '' to 'http://reposerver/computing-SL-55-base-x86_64/RPMS.bas
> e/'
> notice: 
> /Stage[pre]/Common::Os::Release5::Sl55::Repos/Yumrepo[sl-5.5-base]/gpgcheck: 
> gpgcheck changed '' to '0'
> notice: 
> /Stage[pre]/Common::Os::Release5::Sl55::Repos/Yumrepo[sl-5.5-base]/exclude: 
> exclude changed '' to 'yum-conf* c-ares'
> notice: 
> /Stage[pre]/Common::Os::Release5::Sl55::Repos/Yumrepo[sl-5.5-base]/enablegroups:
>  enablegroups changed '' to '1'
> notice: 
> /Stage[pre]/Common::Os::Release5::Sl55::Repos/Yumrepo[sl-5.5-base]/metadata_expire:
>  metadata_expire changed '' to '43200'
> info: changing mode of /etc/yum.repos.d/sl-5.5-base.repo from 600 to 644
> info: create new repo sl-5.5-fastbugs in file 
> /etc/yum.repos.d/sl-5.5-fastbugs.repo
> [...]
> 
> notice that "enabled" parameter is ignored
> 
> 
> I've been looking at list and bug and only found something nearly
> related:
> http://projects.puppetlabs.com/issues/9410
> 
> but it's not my problem.
> 
> 
> Is this a know problem/bug? 

There is a at least a feature request to be able to remove a certain
repository (not just disabling it but removing it all together)

https://projects.puppetlabs.com/issues/9293

-Stefan

Attachment: pgpxcajkB08Nf.pgp
Description: PGP signature

Reply via email to