Forum: CFEngine Help
Subject: Re: Raise a class when class thing1 but not class thing2
Author: nickanderson
Link to topic: https://cfengine.com/forum/read.php?3,27246,27395#msg-27395
FraserCampbell Wrote:
---
> neilhwatson Wrote:
> --
Forum: CFEngine Help
Subject: Re: Raise a class when class thing1 but not class thing2
Author: FraserCampbell
Link to topic: https://cfengine.com/forum/read.php?3,27246,27394#msg-27394
neilhwatson Wrote:
---
> How do you undefine a class?
I'd al
Forum: CFEngine Help
Subject: Re: Raise a class when class thing1 but not class thing2
Author: sauer
Link to topic: https://cfengine.com/forum/read.php?3,27246,27270#msg-27270
How about substituting your variable class names into:
classes:
"a_and_not_b"
or => { "any" },
ifvarclass => "a
On 09/10/2012 01:16 AM, Diego Zamboni wrote:
> Hi Nick,
>
> I haven't fully worked through the reason, but I'm pretty sure the problem
> lies with the not(), because the not() function returns a string, which is
> then being classify-ed - so the "!" inserted by the not() would be lost.
>
> Attach
Hi Nick,
I haven't fully worked through the reason, but I'm pretty sure the problem lies
with the not(), because the not() function returns a string, which is then
being classify-ed - so the "!" inserted by the not() would be lost.
Attached is an example that works - it precomputes the canonifi
On a quick look, I think you need to put the not() outside classify()
and not inside. Not tested.
--Diego
On Sep 7, 2012, at 12:04 PM, Nick Anderson wrote:
> On 09/07/2012 11:53 AM, no-re...@cfengine.com wrote:
>> Forum: CFEngine Help
>> Subject: Re: Raise a class when class thing1 but not clas
Forum: CFEngine Help
Subject: Re: Raise a class when class thing1 but not class thing2
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,27246,27249#msg-27249
How do you undefine a class?
Regarding your problem. My guess is some sort of variable validation/assignment
logic
On 09/07/2012 11:53 AM, no-re...@cfengine.com wrote:
Forum: CFEngine Help
Subject: Re: Raise a class when class thing1 but not class thing2
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,27246,27247#msg-27247
Nick,
Did you check the verbose agent output to see what cla
Forum: CFEngine Help
Subject: Re: Raise a class when class thing1 but not class thing2
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,27246,27247#msg-27247
Nick,
Did you check the verbose agent output to see what classes are defined during
the run? I don't think it is p