Hi Al, seems like its been a while :)
On Fri, Sep 10, 2010 at 5:50 AM, Al @ Lab42 <[email protected]> wrote: > Hi all, > I've a silly problem that it's driving me crazy and I'm almost sure > the solution is quick and easy. > Still it doesn't seem at my reach. > > I've a variable with an array of values, such as: > users_ldap_servers = [ "ldapm.example42.com" , "ldaps.example42.com" ] > > I want to use these values in a single line of a template: > > host <% users_ldap_servers.each do |ldap| %> <%= ldap %> <% end %> > > that's weird, it should not ignore your white spaces. I just tried: array<% array.each do |a| %> <%= a %><% end %> you could always use <%= "#{ldap} " %> as a last resort (although the above should work) > No matter how many spaces I place around, no matter the absence of > trimming -%> I always get something like: > > host ldapm.example42.comldaps.example42.com > instead of: > host ldapm.example42.com ldaps.example42.com > > I think a solution could be to add a whitespace to "ldap" before > yielding it... but I haven't found the needed "few chars combo" (I > suppose). > > Any help? > Al > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<puppet-users%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
