<p dir="ltr"><br>
On Oct 19, 2015 5:50 PM, Rick Hornsby &lt;richardjhornsby@gmail.com&gt; wrote:<br>
&gt;</p>
<p dir="ltr">&gt; I have this: <br>
&gt;<br>
&gt; &lt;% <br>
&gt; @memberList = "" <br>
&gt; @groups.each do |group| <br>
&gt; @memberList += "(memberOf=cn=${group},cn=Users,dc=foo,dc=com)" <br>
&gt; end <br>
&gt; -%&gt; <br>
&gt;</p>
<p dir="ltr">I think you want #{} for variable expansion inside your quoted string, and not ${}.</p>
<p dir="ltr">What you're trying to do is the recommended way. Looping inside Puppet manifests is not supported unless you use the "future" parser (enabled by default in newer Puppet versions).<br>
</p>