Thanks for example.

Cheers,


On Jun 19, 12:31 am, spawn-pup...@adamsclan.org wrote:
> 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<hmmed...@gmail.com>  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:///sys/abc.conf}
> >>           }
>
> >>     puppet:///sys/abc.conf contains :
>
> >>    rundir= /central/$hostname/
> >>    logdir= $hostname.log
>
> >> Can this be done?
>
> > You should probably look at using templates instead.
>
> >http://projects.reductivelabs.com/projects/puppet/wiki/Puppet_Templating
>
> >> --
> >> You received this message because you are subscribed to the Google Groups 
> >> "Puppet Users" group.
> >> To post to this group, send email to puppet-us...@googlegroups.com.
> >> To unsubscribe from this group, send email to 
> >> puppet-users+unsubscr...@googlegroups.com.
> >> For more options, visit this group 
> >> athttp://groups.google.com/group/puppet-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to