[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: feature request
From: |
Mark . Burgess |
Subject: |
Re: feature request |
Date: |
Wed, 18 Apr 2001 08:02:51 +0200 (MET DST) |
On 17 Apr, Alan Sparks wrote:
> Don't know how hard this would be to implement -- so I'll ask anyway...
>
> Several times I've run into the need for a class representing "run these
> if no other class applies." Something like:
>
> resolve:
> box1||box2::
> 1.2.3.4
> default::
> 4.3.2.1
>
> I just made "default" up... the idea is the "default" class applies if
> no other more specific classes apply. I know something like this
> behavior can be synthesized by using class defs and negated classes, but
> it is extremely cumbersome to do.
>
> I don't think "any" is any good here, since it would be executed
> regardless of whether other rules apply.
>
> Opinions?
> -Alan
>
I don't see what is difficult about using the ! sign. Figuring
out what is "default" is much easier for you than for cfengine.
You could do this:
classes:
someclass = ( box1 box 2 )
default = ( !someclass )
resolve:
someclass::
1.2.3.4
default:
1.2.3.4
if you want to make it more readable.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272 Email: Mark.Burgess@iu.hio.no
Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- feature request, Alan Sparks, 2001/04/17
- Re: feature request,
Mark . Burgess <=