help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Need assistance in determining if an rpm is installed


From: Antony Nguyen
Subject: RE: Need assistance in determining if an rpm is installed
Date: Tue, 15 Jan 2002 23:30:25 -0800

There's actually a really neat paper that discusses a way to keep
systems up to date using cfengine, RPM, Perl, and MySQL:

http://astro.uchicago.edu/~davidr/cfengine-tools/lisa-paper_html/

I emailed David a while back asking him for his database schema (I
believe the perl scripts he wrote are still available on his site).
While I didn't use their system as it was, it gave me a nice starting
point for my own home-grown system that I use to keep 35 RedHat servers
up to date with the latest errata and custom RPM packages.  This sure
beats the heck out of paying RH to use their RH Network :)

As far as having cfengine modules (ie, shellscripts) define classes, I
think that -- in 1.6.3 at least -- you do need to predeclare them before
having modules print out class defines.  This may have changed in
version 2 (which I'm now using) - Mark, can you verify?

--Antony

-----Original Message-----
From: Ted Zlatanov [mailto:address@hidden
Sent: Tuesday, January 15, 2002 7:01 AM
To: Rune Mossige
Cc: address@hidden
Subject: Re: Need assistance in determining if an rpm is installed


Rune Mossige <address@hidden> writes:

> I am working on a stock RedHat 7.2 system, and I would like to set up
a
> section that will check if some specific RPM's installed. And, if they
> are not there, the I want to install them. I am using 2.0.a15.

In my experience the shell escapes (as of 1.6.3) are not very
productive for defining classes in all but the simplest cases.
Perhaps this has changed in 2.0.

You are asking for something pretty specific, though.  Why not make a
module that does all the hard work separately from cfengine?  The
module can be a shell or Perl or C (or whatever else) program.  You
just print out "+ClassName" to standard output for every class you
want to define.  I don't think you have to predeclare each class, but
I may be wrong.

If you are interested in this, but can't write that module, I'll look
into it.  It sounds useful enough that many of us on this list would
want to use it.  A version for the Sun packages and other platforms
would be nice too.  Let us know.

Thanks
Ted


_______________________________________________
Help-cfengine mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/help-cfengine



reply via email to

[Prev in Thread] Current Thread [Next in Thread]