Re: [Puppet Users] Re: Blank lines in conditional templates

2011-04-07 Thread Arthur Clune
Thank you! There were indeed spaces at the end of lines. Arthur -- Arthur Clune -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, sen

Re: [Puppet Users] Blank lines in conditional templates

2011-04-07 Thread Arthur Clune
It's been suggested that I just create the output string in code, which works fine. I've put a working version in the gist. > https://gist.github.com/907330 -- Arthur Clune art...@clune.org -- You received this message because you are subscribed to the Google Groups "Puppe

Re: [Puppet Users] Blank lines in conditional templates

2011-04-07 Thread Arthur Clune
x27;ve put it up at gist https://gist.github.com/907330 I've tried various variations on the line layout but all seem to give the same result: if the name isn't defined, I get a blank line rather than no line at all. Arthur -- Arthur Clune art...@clune.org -- You received this mes

[Puppet Users] Blank lines in conditional templates

2011-04-06 Thread Arthur Clune
I'm writing ldirectord.cf files via puppet and unfortunately ldirectord is sensitive to blank lines in the file. I have the following code in my .erb file virtual=<%= vip %>:<%= port %> <% if weights.empty? then -%><% real_servers.each do |real_server| -%> real=<%= real_server %>:<%= port %>