Forum: Cfengine Help
Subject: Re: slist from module?
Author: phnakarin
Link to topic: https://cfengine.com/forum/read.php?3,21255,21257#msg-21257

This should be a trick.
http://www.cfengine.org/manuals/cf3-reference.html#Function-splitstring


bundle agent homedirs
{
vars:

 testhost::

  "userslist" slist => splitstring("$(get_ldap_users.ldapusers)"," ","100");

commands:

testhost::

"/var/cfengine/inputs/modules/get_ldap_users"
module => "true";

reports:

ldap_users::

"Test: $(get_ldap_users.ldapusers)";
"Splitstring: $(userslist)";

}


Cheers,
--Nakarin

_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to