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.

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.

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to