<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Oct 19, 2015, at 16:55, Scott Merrill <<a href="mailto:skippy@skippy.net" class="">skippy@skippy.net</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><p dir="ltr" class=""><br class="">
On Oct 19, 2015 5:50 PM, Rick Hornsby <<a href="mailto:richardjhornsby@gmail.com" class="">richardjhornsby@gmail.com</a>> wrote:<br class="">
></p><p dir="ltr" class="">> I have this: <br class="">
><br class="">
> <% <br class="">
> @memberList = "" <br class="">
> @groups.each do |group| <br class="">
> @memberList += "(memberOf=cn=${group},cn=Users,dc=foo,dc=com)" <br class="">
> end <br class="">
> -%> <br class="">
></p><p dir="ltr" class="">I think you want #{} for variable expansion inside your quoted string, and not ${}.</p></div></blockquote><div>Ah, thanks! That did the trick. erb might be ruby, but the syntax is different enough I'm not sure I'd have gotten the # thing.</div><div><br class=""></div><blockquote type="cite" class=""><div class=""><p dir="ltr" class="">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 class=""></p></div></blockquote><div>That's what I was finding. Enabling the future parser in this version of Puppet tends to break stuff - including (at least it was this way a few months ago) Puppet Forge modules which aren't expecting the newer parser.</div><div><br class=""></div></div><br class=""></body></html>