Forum: Cfengine Help
Subject: Re: Hostname based classes and virtual machines in Cfengine 3
Author: mark
Link to topic: https://cfengine.com/forum/read.php?3,22131,22133#msg-22133

Don't you dare do this! (Call an unnecessary shell command instead of using 
cfengine internals). 

What is wrong with 

 
$(sys.host)
   $(sys.fqhost) ?



both of which are already canonified into classes as part of the general 
discovery. Also there was a syntax error, so
you probably meant


bundle common hostname_def 
{
classes:
 
    "host_$(sys.host)" expression => "any";
       comment => "My own hostname definition.";
}


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

Reply via email to