ERB template, both client and master data

21 views
Skip to first unread message

Andrei-Florian Staicu

unread,
Oct 16, 2012, 3:52:57 AM10/16/12
to puppet...@googlegroups.com
Hi all,

I'm trying to build a motd template for all my linux machines.
This should contain two type of variables:
- client side (from facter), like operatingsystem and architecture
- supplied by the master, after parsing a text file (or querying a
mysql db), like description and location.

So. Where are the template variables evaluated? On the client or on the master?

Any hints on how I can do this?

Thanks.

Ger Apeldoorn

unread,
Oct 16, 2012, 4:49:34 AM10/16/12
to puppet...@googlegroups.com, andrei...@gmail.com
The template function is evaluated on the server, but you do have access to the facter variables that are generated on the client.

Kind regards,
Ger.

Op dinsdag 16 oktober 2012 09:53:34 UTC+2 schreef SAF het volgende:
Reply all
Reply to author
Forward
0 new messages