Hi I am creating a module to populate a file. The result should be like this: uri ldap://10.10.10.1 ldap://10.10.10.2 ldap://10.10.10.3 To achieve this I am using an array with the IPs declared on the ldap_servers array and the following erb template: uri <% if !@ldap_servers.empty? -%> ldap://<%= @ldap_servers %> <% end -%> The ouput I get is like this: uri ldap://10.10.10.1ldap://10.10.10.2lado://10.10.10.3 Without the space between the ips. I have also tried this (with no success): uri <% if !@ldap_servers.empty? -%> ldap://<%= @ldap_servers %> <%= %> <% end -%> I think this is an easy one but after several tries I have decided to ask here. Thank you for your time Best regards -------------------------------------------------------------------------------------- Juan Sierra Pons juan@elsotanillo.net Linux User Registered: #257202 Web: http://www.elsotanillo.net Git: http://www.github.com/juasiepo GPG key = 0xA110F4FE Key Fingerprint = DF53 7415 0936 244E 9B00 6E66 E934 3406 A110 F4FE -------------------------------------------------------------------------------------- -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CABS%3Dy9uyA_pwZdbgxa0m2x4K0uVWybR_YWpy6_1ACe1oQf7n1g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.