Andrei-Florian Staicu
2012-Oct-16 07:52 UTC
[Puppet Users] ERB template, both client and master data
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. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Ger Apeldoorn
2012-Oct-16 08:49 UTC
[Puppet Users] Re: ERB template, both client and master data
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:> > 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. >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/4K0VmNECkSoJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.