Thank you for contributing to this project!
This was supposed to be originally part of pull request #80 but it looks like I missed adding it in. This allows you to use hiera with plugin_type to manage your telegraf.conf.
This PR adds optional logfile rotation variables for the telegraf config file. Without these variables our log files are becoming too large and filling up the drive space on our backup servers
This patch moves the relationship between the Yumrepo and the Package resources into the same conditional block of where the Yumrepo is created. Thus it doesn't assume there's always a Yumrepo[influxdata] in the catalog, even if =manage_repo=>false=.