On Thu, Apr 29, 2010 at 10:59:30AM +0100, Matt Wallace wrote:
> 
> I've run into an issue whereby I need to install custom RPMS on boot
> using cobbler and the only way I can currently find to do this is to
> setup a custom repo (using mrepo or similar) then put that as a mirror
> in cobbler and let cobbler "import" the files and the repo.
> 
> Is there any way to have cobbler perform the initial creation of the
> repo and then publish packages straight into the repo that is managed by
> cobbler?

I think you mean what i accomplish with this:


# our apache is delivering /cobbler/webroot as documentroot.

# create new repo
mkdir /cobbler/webroot/x86_64/myrpms
cp newrpm.rpm /cobbler/webroot/x86_64/myrpms
createrepo /cobbler/webroot/x86_64/myrpms

# make this repo known to cobbler
cobbler repo add --mirror=http://10.0.0.20/x86_64/myrpms \
   --name=repo-myrpms --mirror-locally=0
cobbler reposync

# supply newly deployed systems with that repo
cobbler profile edit --name=rhel5u5_serv-x86_64 \
        --repos='repo-myrpms'

# and now redeploy systems that are using 
# the profile 'rhel5u5_serv-x86_64'.




Christian
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to