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,22143#msg-22143
mark Wrote:
-------------------------------------------------------
> Okay, so you could use this to qualify things only
> on the host:
>
> HOSTNAME.!JAIL
But how do you put this definition in a class?
For example in this class definition, how do I say that a system is a jail or
not?
"domain2" or => {
classify("www-proxy.domain2.org"),
classify("mysql.domain2.org")
};
mysql.domain2.org might be a host or a jail, and I want to perform common tasks
on all systems from the "domain2" class.
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine