Обсуждение: Postgres Kickstart/Anaconda auto-install

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

Postgres Kickstart/Anaconda auto-install

От
Alan McKay
Дата:
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

<comps>
<!--  <meta> -->
<!-- Meta information will go here eventually -->
<!--  </meta> -->
  <group>
    <id>ExamplePG</id>
    <name>ExamplePG</name>
    <default>true</default>
    <description>Example's Own PostgreSQL Repository</description>
    <uservisible>true</uservisible>
    <packagelist>
      <packagereq
type="default">postgresql-server-8.4.0-1PGDG.rhel5.i386.rpm</packagereq>
      <packagereq
type="default">postgresql-libs-8.4.0-1PGDG.rhel5.i386.rpm</packagereq>
      <packagereq
type="default">postgresql-plperl-8.4.0-1PGDG.rhel5.i386.rpm</packagereq>
      <packagereq
type="default">postgresql-debuginfo-8.4.0-1PGDG.rhel5.i386.rpm</packagereq>
      <packagereq
type="default">postgresql-devel-8.4.0-1PGDG.rhel5.i386.rpm</packagereq>
      <packagereq
type="default">postgresql-plpython-8.4.0-1PGDG.rhel5.i386.rpm</packagereq>
      <packagereq
type="default">postgresql-8.4.0-1PGDG.rhel5.i386.rpm</packagereq>
      <packagereq
type="default">postgresql-docs-8.4.0-1PGDG.rhel5.i386.rpm</packagereq>
      <packagereq
type="default">postgresql-test-8.4.0-1PGDG.rhel5.i386.rpm</packagereq>
      <packagereq
type="default">postgresql-contrib-8.4.0-1PGDG.rhel5.i386.rpm</packagereq>
      <packagereq
type="default">postgresql-pltcl-8.4.0-1PGDG.rhel5.i386.rpm</packagereq>
    </packagelist>
  </group>
</comps>

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
Дата:
> 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
Дата:
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

Вложения