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,22138#msg-22138

Yes, but I still don't understand. Cfengine gets the real host name from 
uname(), which is what you get from printing the shell command. So your example 
is no different from using the hostname of the machine. 

Also, I don't see what the IP addresses have to do with the hostname,

Is there not rather a way of determining what is not a jail? The presence of a 
special file, the ability to see the jail directories, to qualify the class?

isdir("/jail") ?

I'm afraid I don't know much about jails or how they look in practice.

M

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

Reply via email to