Cfengine Help: Re: Cfengine Help: Re: Class case sensitivity

2010-12-01 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine Help: Re: Class case sensitivity Author: babudro Link to topic: https://cfengine.com/forum/read.php?3,19564,19569#msg-19569 Daniel V. Klein Wrote: --- > After this, you have the short hostname

Re: Cfengine Help: Re: Class case sensitivity

2010-12-01 Thread Daniel V. Klein
This seems like an awful lot of work to get the long/short hostname. What about: classes: "xxx" expression => regextract("([\w-]+)\..*", "$(sys.fqhost)", "short_host"); After this, you have the short hostname in $(short_host[1]), and the long one has always been available as $(sys.fqhost)

Cfengine Help: Re: Class case sensitivity

2010-12-01 Thread no-reply
Forum: Cfengine Help Subject: Re: Class case sensitivity Author: babudro Link to topic: https://cfengine.com/forum/read.php?3,19548,19559#msg-19559 Hi Neil. I'm the one who posted that question regarding the hostnames about a month or so ago. My "feature request" is on the Bug Tracker (issue #3