Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Have you looked at the stdlib module?

join

Joins an array into a string using a separator. For example, join(['a','b','c'], ",") results in: "a,b,c". Type: rvalue.

You should be able to do something like:

$_grps_allowed = join(hiera('users_allowed::adm_group'), ', ');

Have you looked at the stdlib module?

join

Joins an array into a string using a separator. For example, join(['a','b','c'], ",") results in: "a,b,c". Type: rvalue.

You should be able to do something like:

$_grps_allowed = join(hiera('users_allowed::adm_group'), ', ');',');