[Mageia-dev] puppet and the urpmi config

Olivier Thauvin nanardon at nanardon.zarb.org
Wed Jul 18 17:39:39 CEST 2012


* Guillaume Rousse (guillomovitch at gmail.com) wrote:
> Le 18/07/2012 14:29, Olivier Thauvin a écrit :
>> Ideas and patches welcome.
> You shouldn't overwrite any file managed locally, but interact with it  
> using expected interface. For urpmi, it just requires to check if the  
> media you are interested in is already present, and otherwise call  
> urpmi.addmedia for adding it. I don't have any puppet-ready solution for  
> it, but I don't think that's really difficult to reproduce.

A real solution would be urpmi make a real difference between
configuration and state data.
At time it write things in both /etc/urpmi and /var/lib/urpmi, even
there is no change real change in urpmi.cfg.

Such plugin for puppet must be written in ruby, I haven't plan to learn
ruby right now.

I will also argue the media name is not enough to ensure the urpmi
config use the right distro on the server I want.

Regards.

-- 

Olivier Thauvin
CNRS  -  LATMOS
♖ ♘ ♗ ♕ ♔ ♗ ♘ ♖
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: </pipermail/mageia-dev/attachments/20120718/428c997d/attachment.asc>


More information about the Mageia-dev mailing list