Forum: Cfengine Help Subject: Re: Hostname based classes and virtual machines in Cfengine 3 Author: dnaeon Link to topic: https://cfengine.com/forum/read.php?3,22131,22145#msg-22145
Another solution proposed by Mikhail Gusarov is to exclude the IP addresses of the jails, and they should not be present when cf-agent runs on the host. The way to get the IP addresses of the jails would be something like: # jls | grep -v JID | awk '{ print $2 }' Then if we put this output to a variable in Cfengine 3, classify() them, and then negate these classes for "freebsd_hosts" it should work. But I have no idea, how this can be done in Cfengine 3... Any ideas? Regards, Marin _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine