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: Rune Mossige
Subject: Re: Need assistance in determining if an rpm is installed
Date: Tue, 15 Jan 2002 10:54:40 +0100
User-agent: Mutt/1.2.5i

On (15/01/02 10:49), Adrian Phillips wrote:
> To: Rune Mossige <address@hidden>
> Cc: address@hidden
> Subject: Re: Need assistance in determining if an rpm is installed
> From: Adrian Phillips <address@hidden>
> Date: 15 Jan 2002 10:49:23 +0100
> Lines: 23
> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
> Sender: "Adrian Phillips,,," <address@hidden>
> X-Virus-Scanned: by AMaViS snapshot-20010714
> 
> >>>>> "Rune" == Rune Mossige <address@hidden> writes:
> 
>     Rune> Hello, I am working on a stock RedHat 7.2 system, and I
>     Rune> would like to set up a section that will check if some
>     Rune> specific RPM's installed. And, if they are not there, the I
>     Rune> want to install them. I am using 2.0.a15.
> 
>     Rune> In my cfagent.conf file, I have:
> 
>     Rune> groups: linux:: have_openmotif-2_1_30-8 = ( "/bin/rpm -q
>     Rune> openmotif-2.1.30-8" )
> 
> I'm using 1.6 still but can you have have a class within a class,
> ie. linux:: in the groups section ?

I do not know for sure...I thought this was allowed? If not, how do I
then get different tests to run on different OS'es? Do You have a
suggestion of how to do this task in a different way?

I was thinking of skipping the groups stuff all-together, and just use a
shellcommands, behind a special class that was only executed during
system boot, e.g. /var/cfengine/bin/cfagent -DBOOT, so that new RPM's
are only installed during a system boot....but I still want to be able
to install a new rpm on a running system.
> 
> Sincerely,
> 
> Adrian Phillips
> 
> -- 
> Your mouse has moved.
> Windows NT must be restarted for the change to take effect.
> Reboot now?  [OK]
> 

-- 
-------------------------------------------------------------------
           (-: Hiroshima 45, Chernobyl 86, Windows 95 :-)
Our ultimate goal is to make overloaded systems appear to be idle.
High performance, High reliability, Low cost -------- Pick any two.
-------------------------------------------------------------------
Rune  Mossige,  Systems  Support  Engineer,  WesternGeco, Stavanger
Tel: (+47)51946869                             Mobile:(+47)90871024



reply via email to

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