voxpupuli / puppet-telegraf

A Puppet module for installing and configuring InfluxData's Telegraf
https://forge.puppet.com/puppet/telegraf
GNU General Public License v3.0
24 stars 98 forks source link

Make log rotation configurable #211

Closed AndrewLest closed 1 year ago

AndrewLest commented 1 year ago

Pull Request (PR) description

Add log rotation parameters

This Pull Request (PR) fixes the following issues

Replaces pull request #149 Rebased the module using v5.0.0 Adding agent parameters: logfile_rotation_interval, default = "0h" logfile_rotation_max_size, default = "0MB" logfile_rotation_max_archives, default = 5 I have added test data, setting these values to their default values. Tested with bundle exec rake beaker - no errors Tested in my environment on CentOS7, Ubuntu 18.04 & Windows 2019 - I just tested that the telegaf.conf file was updated appropriately