How to write to log in custom functions (Puppet::Functions)

asked 2018-04-23 08:31:47 -0600

mamut3D gravatar image


I am trying to write some custom functions in The modern Ruby functions API (Puppet::Functions), however i was unable to find any documentations how to write to puppet-server log from within my function

Can someone please tell me, if is this supported and how to achieve it?

Thank you

edit retag flag offensive close merge delete


Functions are executed on the host, not on the server. Logging will be performed in its usual manner, but only on the host.

luksi1 gravatar imageluksi1 ( 2018-04-24 08:52:43 -0600 )edit

Puppet functions are evaluated during catalog compilation (, in puppet agent/master setup, catalog is compiled on the master (

mamut3D gravatar imagemamut3D ( 2018-04-24 09:30:27 -0600 )edit