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

Maybe I wasn't clear enough. You were right about $(sys.host) and 
$(sys.fqhost), they work fine and are much elegant solutions than my 'hostname' 
command.

I just tried to explain why I need the additional classes. I define a class 
very similar to "host_$(sys.uqhost)" and I use it to choose the right promises. 
I am quite pleased with my solution.

Ps. I mentioned the IP address classes because I use them.
Ps2. I check if kernel files exist on the system to determine if it is a jail.

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

Reply via email to