Postgres Kickstart/Anaconda auto-install

Поиск
Список
Период
Сортировка
Искать

Postgres Kickstart/Anaconda auto-install

От:
Alan McKay <alan.mckay@gmail.com>
Дата:
Hey folks,

I realise this is probably more a matter for a kickstart list, but
then again, I have to think that someone else on this list has done
this and can help.  So I'll ask here and there.

I'm dragging our company kicking and screaming into the realm of
Kickstart/Anaconda, and trying to get PG automatically installed via a
kickstart file.

I'm using CentOS 5.3 and have mirrored their repository on my subnet,
and all that part works great.

I've also taken a copy of
http://yum.pgsqlrpms.org/8.4/redhat/rhel-5-i386/ (and the 64 bit one)
and want to install the RPMs from there.  Automatically via Kickstart.

I have this line in my kickstart file :

repo --name=Postgres --baseurl=http://192.168.0.22/ks/postgres/8.4/rhel-5-i386/

and then this :
@examplePG

And within the directory for that repo, I've created a comps.xml file
based on some googling.  Here is my file - it only lists those RPMs
from the repo, that I want





  
    ExamplePG
    ExamplePG
    true
    Example's Own PostgreSQL Repository
    true
    
      postgresql-server-8.4.0-1PGDG.rhel5.i386.rpm
      postgresql-libs-8.4.0-1PGDG.rhel5.i386.rpm
      postgresql-plperl-8.4.0-1PGDG.rhel5.i386.rpm
      postgresql-debuginfo-8.4.0-1PGDG.rhel5.i386.rpm
      postgresql-devel-8.4.0-1PGDG.rhel5.i386.rpm
      postgresql-plpython-8.4.0-1PGDG.rhel5.i386.rpm
      postgresql-8.4.0-1PGDG.rhel5.i386.rpm
      postgresql-docs-8.4.0-1PGDG.rhel5.i386.rpm
      postgresql-test-8.4.0-1PGDG.rhel5.i386.rpm
      postgresql-contrib-8.4.0-1PGDG.rhel5.i386.rpm
      postgresql-pltcl-8.4.0-1PGDG.rhel5.i386.rpm
    
  


My installation does not complain about the @ExamplePG line, but it
does not install any of these RPMs.  The only PG rpm I get is a
version 8.1 libs RPM from the CentOS install.

As a test I then inserted this into my kickstart file :

@foobar

And sure enough, the install process complains about it and asks if I
want to continue or abort.

Any ideas out there?

thanks,
-Alan

-- 
“Don't eat anything you've ever seen advertised on TV”
         - Michael Pollan, author of "In Defense of Food"

Re: Postgres Kickstart/Anaconda auto-install

От:
Alan McKay <alan.mckay@gmail.com>
Дата:
> And within the directory for that repo, I've created a comps.xml file

And of course re-run "createrepo" ...

-- 
“Don't eat anything you've ever seen advertised on TV”
         - Michael Pollan, author of "In Defense of Food"

Re: Postgres Kickstart/Anaconda auto-install

От:
Devrim GÜNDÜZ <devrim@gunduz.org>
Дата:
Вложения:
On Thu, 2009-08-27 at 16:28 -0400, Alan McKay wrote:
> Any ideas out there?

There is a ks file that I wrote for PostgreSQL Live CD's:

https://projects.commandprompt.com/public/pgcore/browser/livecd/PG84-Fedora-x86.ks

This may guide you. It is for Fedora-11, but you can easily move it to
RHEL 5.

-HTH.

Regards,
-- 
Devrim GÜNDÜZ, RHCE
Command Prompt - http://www.CommandPrompt.com 
devrim~gunduz.org, devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
                   http://www.gunduz.org
FAQ