[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Double-negative class workaround
From: |
Mark . Burgess |
Subject: |
Re: Double-negative class workaround |
Date: |
Tue, 1 Apr 2003 20:47:18 +0200 (MEST) |
I find it difficult to believe that this doesn't work. Please
check for misunderstandings, typos etc. Or provide a complete
example that demonstrates the problem.
M
On 1 Apr, Ryan Anderson wrote:
> An important self-defined class I have is called 'servers' which is made
> by yanking a netgroup from NIS. So, my workstation class in cfengine
> scripts is simply !servers. My problem now is that there are times when
> I want to use two negated classes, and it doesn't work. This is using
> cfengine 2.0.4. An example of what I want to do is something like:
>
> ==========================
> has_foo = ( FileExists(/etc/foo) )
>
> copy:
> !servers.!has_foo::
> .....
> .....
>
> !server.has_foo::
> .....
> .....
> ==========================
>
> The first example doesn't work, but it would be _really_ useful to me
> if it did. Is there a simple way around this?
>
>
> Thanks,
>
> RCA
> --
> Ryan C. Anderson
> Unix Administrator
> United Defense L.P.
> desk 763.572.6684
> pager 952.235.9936
> mobile 612.419.9362
>
>
> _______________________________________________
> 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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~