On 21 April 2010 17:48, Justin Lloyd <jll...@digitalglobe.com> wrote:
> FWIW, for scalability I'd probably use $(sys.uqhost) to ensure that > classmatch is not matching against another class that may exist and just > happens to look like a valid hostname. > > classes: > "svxx" expression => regcmp("sv[0-9]{2}", "$(sys.uqhost)"); > > Justin > > A perfectly valid point. Further, your version is clearer and easier to read - all takes place right in front of your eyes (checking if the regex matches the unqualified host name). I just checked your suggestion in my test environment - it works fine and will be deployed for sure. Thanks, Erlend
_______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine