[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Class definitions - is "_" (underscore) an operator?
From: |
Mark . Burgess |
Subject: |
Re: Class definitions - is "_" (underscore) an operator? |
Date: |
Wed, 30 Nov 2005 08:07:08 +0100 (MET) |
User-agent: |
SquirrelMail/1.4.4 |
>
> i experience some problems when defining the following classes:
>
>
> <snip from cf.customers>
>
> customer = (
> IPRange(somerange/24)
> )
>
> customer_location = (
> IPRange(anotherrange/24)
> )
>
> </snip>
>
> The actions defined for "customer" works fine.
>
> But for the "customer_location" cfengine also defines the hosts in
> "anotherrange" as members of the class
> "customer" in addition to "customer_location". This again results in
> cfengine
> invoking the actions defined for both classes.
>
> Is this intended behavior? I could not find any documentation that
> indicates that
> "_" (underscore) works as an operator which expands for example
> "customer_location" into two classes.
>
> I am using cfengine 2.1.17 on the system.
>
Hei - I not sure I understand what you are suggesting. I just tested your
example and it seems to work okay. Certainly customer_location is not
split into customer and location. My guess is that the IP ranges overlap
somehow.
Mark