This function is only available in CFEngine Enterprise.
remoteclassesmatching(regex, server, encrypt, prefix)
Description: Reads persistent classes matching regular expression
from a remote CFEngine server
server and adds them into local context with
The return value is true (sets the class) if communication with the server was successful and classes were populated in the current bundle.
regex: regular expression - Regular expression - in the range:
string- Server name or address - in the range:
encrypt: - Use encryption - one of
string- Return class prefix - in the range:
"succeeded" expression => remoteclassesmatching("regex","server","yes","myprefix");
Notes: Note that this function assumes that you have already performed a
successful key exchange between systems, (e.g. using either a remote
cf-runagent connection). It contains no mechanism for trust
establishment and will fail if there is no trust relationship