help-cfengine
[Top][All Lists]
Advanced

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

RE: Newbie question :(


From: Villalovos, John L
Subject: RE: Newbie question :(
Date: Thu, 8 May 2003 10:16:16 -0700

Thanks.  I will do that.

I guess the reason I didn't try doing that was I was hoping to avoid the
actual ReturnsZero call.  I was thinking that by doing it the way I was
trying, that the test would "short-circuit" and not make the call unless
it was a Red Hat 8 system.

But I'm always willing to use what works :)

Thanks for the solution,
John

John Villalovos
Intel Corporation 
15400 NW GREENBRIER PKWY # CO5-162
BEAVERTON, OR  97006-5723
(503) 677-5777   Fax: (503) 677-6670

GPG 1.+/PGP 5.+/ DSS/Diffie Helman
http://www.sodarock.com/JohnVillalovos-gpgkey.txt
1024D/1A25D86C 2F24 AD89 E5D5 C92B 7FE2  F878 7ED5 2D38 1A25 D86C

My opinions are my own and NEVER the opinions of Intel Corporation.  I
am but a tiny, insignificant, infinitesimal (1/80000) cog in the giant
machine of Intel :)  

> -----Original Message-----
> From: mark@iu.hio.no [mailto:mark@iu.hio.no] 
> Sent: Thursday, May 08, 2003 10:12 AM
> To: Villalovos, John L
> Subject: Re: Newbie question :(
> 
> 
> 
> Why not do
> 
> webServer_rh8 = ( ReturnsZero(/bin/rpm -q httpd) )
> 
> ...
> 
> webserver_rh8.redhat_8::
> 
>  blabla
> 
> 
> On  8 May, Villalovos, John L wrote:
> > So I am trying to figure out if I have a webserver installed on my
> > system using RPM and then set a class/group to that value.
> > 
> > So I am using the ReturnsZero command to run an RPM command 
> to determine
> > if a I have a webserver installed.
> > 
> > In Red Hat 8 and above the webserver is called "httpd".
> > In Red Hat 6/7 the webserver is called "apache".
> > 
> > So I need to use the correct package name when doing my rpm command.
> > 
> > I was trying to do something along the lines of:
> > 
> > groups:
> >     webServer_rh8 = ( redhat_8.( ReturnsZero(/bin/rpm -q httpd) ) )
> > 
> >     webServer_rh7 = ( redhat_7.( ReturnsZero(/bin/rpm -q apache) ) )
> > 
> >     webServer = ( webServer_rh7 | webServer_rh8 )
> > 
> > But this does not work :(
> > 
> > So I was wondering if someone would be so kind as to tell 
> me the best
> > method for doing this desired goal.
> > 
> > Thanks,
> > John
> > 
> > John Villalovos
> > 
> > My opinions are my own and NEVER the opinions of Intel 
> Corporation.  I
> > am but a tiny, insignificant, infinitesimal (1/80000) cog 
> in the giant
> > machine of Intel :)  
> > 
> > 
> > _______________________________________________
> > Help-cfengine mailing list
> > Help-cfengine@gnu.org
> > http://mail.gnu.org/mailman/listinfo/help-cfengine
> 
> 
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Work: +47 22453272            Email:  Mark.Burgess@iu.hio.no
> Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 




reply via email to

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