CFEngine Help: Re: Raise a class when class thing1 but not class thing2

2012-09-17 Thread no-reply
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: > --

CFEngine Help: Re: Raise a class when class thing1 but not class thing2

2012-09-17 Thread no-reply
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

CFEngine Help: Re: Raise a class when class thing1 but not class thing2

2012-09-10 Thread no-reply
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

Re: CFEngine Help: Re: Raise a class when class thing1 but not class thing2

2012-09-10 Thread Nick Anderson
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

Re: CFEngine Help: Re: Raise a class when class thing1 but not class thing2

2012-09-09 Thread Diego Zamboni
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

Re: CFEngine Help: Re: Raise a class when class thing1 but not class thing2

2012-09-07 Thread Diego Zamboni
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

CFEngine Help: Re: Raise a class when class thing1 but not class thing2

2012-09-07 Thread no-reply
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

Re: CFEngine Help: Re: Raise a class when class thing1 but not class thing2

2012-09-07 Thread Nick Anderson
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

CFEngine Help: Re: Raise a class when class thing1 but not class thing2

2012-09-07 Thread no-reply
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