On Wed, Apr 07, 2010 at 08:07:51AM -0400, fo...@cfengine.com wrote: >Forum: Cfengine Help >Subject: Re: Setting a variable conditionally, depending on a class? >Author: neilhwatson >Link to topic: https://cfengine.com/forum/read.php?3,16796,16811#msg-16811 > >Alas these examples are so contrived, to me, that I have difficulty >following them. I would be remiss if I did not point out that using >CNAMES for mail hosts is generally a bad thing but, I get your point.
Noted regarding CNAMES, but as I mentioned, I was trying to come up with something on the spot. >While I agree that it is nice to have all things dynamically figured >out for you that is not always the case. Quite often one tends to set >some high level classes (e.g. mxhost, ntp_servers) in a global scope so >that they can be used without such an attempt at programming. There are >pros and cons to both methods but one has to examine them on a case by >case basis. I think we all agree that cfengine is most certainly not imperative programming or scripting. It is declartive, as has been mentioned many times. I suppose this is an attempt on my part to make it similar to functional programming. -- Jesse Becker NHGRI Linux support (Digicon Contractor) _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine