On Mon, Mar 14, 2011 at 11:07 AM, VinceT <[email protected]> wrote: > I'm attempting to use puppet for customing the root gecos field to use > a template to insert the local hostname for Redhat 5.5 and Solaris > 10. I'm using Puppet 2.6.4 with environments and modules and seeing > trouble that looks like end of lines not being suppressed from the > template.
Adding a hyphen to the closing %> is the way to suppress newlines in ERB templates. <%= hostname -%> -- 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.
