[Puppet Users] templates for user resources types

2011-03-14 Thread VinceT
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. class passw

Re: [Puppet Users] templates for user resources types

2011-03-14 Thread Nigel Kersten
On Mon, Mar 14, 2011 at 11:07 AM, VinceT 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 li

Re: [Puppet Users] templates for user resources types

2011-03-14 Thread Brian Gallew
On Mon, Mar 14, 2011 at 11:07 AM, VinceT wrote: > > > class passwd { > > user { "root": >ensure => present, >comment => template("passwd/passwd.root.user.erb"), > >} > > passwd.root.user.erb contains: > > Root user on <%= hostname %> > > For such a simple substitution, you

Re: [Puppet Users] templates for user resources types

2011-03-16 Thread Felix Frank
On 03/15/2011 02:42 AM, Nigel Kersten wrote: > On Mon, Mar 14, 2011 at 11:07 AM, VinceT 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 modu