[tools] Request for having plugins for mrepo
Dag Wieers
dag at wieers.com
Thu Apr 10 12:33:21 CEST 2008
On Fri, 4 Apr 2008, apratyaksh wrote:
> Ian Forde wrote:
>> On Fri, 2008-04-04 at 19:09 +0100, apratyaksh wrote:
>>
>>> I am using mrepo for hosting a lot of isos (mostly redhat based ones) and
>>> it has been a useful tool.
>>> I would like to ask for a additional feature in mrepo. A lot of time I
>>> have to use some custom scripts on the mrepo
>>> repositories to generate information base on the repository like the
>>> yum/apt configuration files which can be downloaded by users
>>> or a master boot image which can boot all available distros of a arch
>>> (unfortunately our environment cannot use PXE a lot of time) etc.
>>>
>>> Most of the time I have shell scripts ending up in cron jobs, so even
>>> after doing a regeneration of repositories with mrepo all is not
>>> updated
>>> as I have to run the cron jobs manually.
>>>
>>> Will it be possible to have some plugins to mrepo or some way to call a
>>> external script per repository ?
>>>
>>
>> Why not call your script from within the mrepo cron script to run right
>> after mrepo itself?
>>
>> -I
>
> Yes this can be done but I was looking for something that can target a
> particular repository, like the way
> mrepo does. So that I don't have to run the script on the whole repo but only
> where mrepo was run.
>
> I see mrepo also does some checks to update repository only if required.
>
> Do you think this will be good ?
I think that would be very useful but I have no experience in writing a
plugin infrastructure. I am sure that in your scripts you would like to
use information that mrepo holds (like the repo path, name) and that you
want to be able to run a script in different places within mrepo.
If we can describe what we want to do and how we want to do it (with the
maximum flexibility) we can look at how to implement it.
--
-- dag wieers, dag at wieers.com, http://dag.wieers.com/ --
[Any errors in spelling, tact or fact are transmission errors]
More information about the tools
mailing list