Forum: Cfengine Help
Subject: Re: How can I merge several slist into one slist?
Author: random
Link to topic: https://cfengine.com/forum/read.php?3,21290,21292#msg-21292
Thanks for the reply! I've given this a try and it's close.. so close:
"allowgroups_list" slist => { @(defaultgroups), @(allow_external),
@(allow_internal), @(allow_database) },
policy => "ifdefined";
Results in:
AllowGroups root,wheel,cf_null,admin1,admin2,cf_null
For fun, I also tried doing:
www::
"allowgroups_list" slist => { "root", "wheel" }, policy => "free";
www.web::
"allowgroups_list" slist => { @(allowgroups_list), "group1",
"group2" };
www.internal|www.backend::
"allowgroups_list" slist => { @(allowgroups_list), "admin1",
"admin2" };
www.database::
"allowgroups_list" slist => { @(allowgroups_list), "mysql",
"admin1" };
www::
"allowgroups" string => join(",","allowgroups_list");
Unfortunately this results in an empty string for 'allowgroups'.
Thanks
-random
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine