* Guillaume Rousse ([email protected]) 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
♖ ♘ ♗ ♕ ♔ ♗ ♘ ♖

Attachment: pgpedlIiZL3FV.pgp
Description: PGP signature

Reply via email to