How to write puppet logs on each client to be re-written/appended to a central log file for one particular module?
I have a puppet master/client arch deployed in the company. We are already deploying 150+ puppet modules in the environment.
I have been asked to create a puppet module to install/update a package and create a log every time it upgrades/installs on a client. This log has to be written to a central log outside the client.
Is there any way I can achieve this using Puppet? Can some code be included in the module itself to do this or do I need to run a script outside of Puppet to get the logs from each client?
Currently, we are logging all Puppet runs in /var/log/puppet/puppet.log on each client.