Forum: Cfengine Help Subject: Re: Populate a class using an slist fails? Author: msvob...@linkedin.com Link to topic: https://cfengine.com/forum/read.php?3,18712,18731#msg-18731
Here's why this might be useful.... bundle common global { vars: "outgoing_mail_servers" slist => { "host1", "host2", "host3" }; "incoming_mail_servers" slist => { "host4", "host5", "host6" }; classes: "all_mail_servers" or => { @(outgoing_mail_servers), @(incoming_mail_servers) }; } So instead of individually defining hosts in the classes stanza, you could populate variables and then use those slist variables in a combination to make larger classes. Is there another valid way of doing this that works, other than the above? _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine