Jacob,
Thank you that worked!
[root@puppet manifests]# cat motd.pp
file { "/etc/motd":
group => 'root',
owner => 'root',
mode => '440',
content => template("/etc/puppet/templates/motd.erb")
}
[root@puppet manifests]# cat /etc/motd
memory free = 389.88 MB
domain = jokefire.com
On 2011-11-29 15:37 , Tim Dunphy wrote:
> Hello list,
>
> I am having a problem with template file. Why are variables not
> interpolated?
>
> [root@puppet manifests]# cat /etc/motd
> memory free = <%= memoryfree %>
> domain = <%= domain %>
> operating system = <%= operatingsystem %>
>
> This
Hello list,
I am having a problem with template file. Why are variables not interpolated?
[root@puppet manifests]# cat /etc/motd
memory free = <%= memoryfree %>
domain = <%= domain %>
operating system = <%= operatingsystem %>
This is the template file
[root@puppet manifests]# cat ../template