'Twas brillig, and Olivier Thauvin at 18/07/12 16:39 did gyre and gimble: > * 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.
Would making urpmi support a /etc/urpmi/urpmi.conf.d/ folder also help here? Col -- Colin Guthrie colin(at)mageia.org http://colin.guthr.ie/ Day Job: Tribalogic Limited http://www.tribalogic.net/ Open Source: Mageia Contributor http://www.mageia.org/ PulseAudio Hacker http://www.pulseaudio.org/ Trac Hacker http://trac.edgewall.org/
