Re: [Puppet Users] passing variables to static files

2010-06-18 Thread spawn-puppet
As another option, I believe you can use: file { "/etc/abc.conf": ensure => present content => "rundir= /central/$hostname/\nlogdir= $hostname.log" } - Jeff On 06/18/2010 01:49 PM, Nigel Kersten wrote: On Fri, Jun 18, 2010 at 11:47 AM, CraftyTech

Re: [Puppet Users] passing variables to static files

2010-06-18 Thread Nigel Kersten
On Fri, Jun 18, 2010 at 11:47 AM, CraftyTech wrote: > Hello All, > >      I have quick question for you; How can I pass a variable to a > static file that I'm distributing via puppet?  i.g, : > class abc { >     file { "/etc/abc.conf": >           ensure => present >           source => "puppet://

[Puppet Users] passing variables to static files

2010-06-18 Thread CraftyTech
Hello All, I have quick question for you; How can I pass a variable to a static file that I'm distributing via puppet? i.g, : class abc { file { "/etc/abc.conf": ensure => present source => "puppet:///sys/abc.conf} } puppet:///sys/abc.conf contains