help-cfengine
[Top][All Lists]
Advanced

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

Re: negating a class


From: Ashton MacAndrews
Subject: Re: negating a class
Date: Mon, 6 Nov 2000 15:43:56 -0800
User-agent: Mutt/1.2.5i

Vilius Puidokas <address@hidden>:

> having trouble to negate a class in section groups:
> 
> groups:
>       product = ( "/usr/bin/test -e /etc/somefile" )
> 
> now if wanna have groups which is !product i try doing:
>       non-product = ( !product )
>       non-product = ( -product )

Why not just use '!product' directly in the class rules?

otherwise

    non-product = ( off )

    !product::
        non-product = ( on )

(which seems sort of silly)




reply via email to

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