help-cfengine
[Top][All Lists]
Advanced

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

Re: Setting an OS-specific class


From: Wil Cooley
Subject: Re: Setting an OS-specific class
Date: Wed, 22 Sep 2004 15:05:04 -0700

On Tue, 2004-09-21 at 17:08 -0700, Tod Oace wrote:

> I looked at the reference manual and it says that the "redhat::" is 
> ANDed with the ReturnsZero, so I guess it's working the way it's 
> supposed to, but it's what I expected. And I don't know how else to 
> easily limit the egrep to redhat.
> 
> This is on 2.1.10. Any ideas?

How about this:

control:
        redhat::
                grepcmd = ( /bin/egrep -q foo )
        !redhat::
                grepcmd = ( /bin/egrep foo )

classes:
        someclass = ( ReturnsZero($(grepcmd))

?

Wil
-- 
Wil Cooley                                 wcooley@nakedape.cc
Naked Ape Consulting                        http://nakedape.cc

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

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