treasure-data / chef-td-agent

Chef Cookbook for td-agent (Treasure Agent or Fluentd)
https://supermarket.chef.io/cookbooks/td-agent
Apache License 2.0
127 stars 121 forks source link

Support install from package file and @type in configuration. #101

Closed stefano-pogliani closed 5 years ago

stefano-pogliani commented 7 years ago

Hello,

We use this cookbook to install fluentd onto ubuntu servers and we occasionally have problems rebuilding servers when new versions of the package are released. This PR will allow us to specify an internal URL where we store the deb file and install that.

I have also added a parameter to generate configuration files with @type instead of type to avoid constant spamming of the logs with the deprecation warning.

stefano-pogliani commented 7 years ago

Added automatically detecting type vs @type @yyuu

Can you also clarify why using td-agent 2 deb package installs td-agent 0.14.20?

$ sudo dpkg --list | grep td-agent
ii  td-agent                         2.3.5-0                           amd64        Treasure Agent: A data collector for Treasure Data
$ td-agent --version
td-agent 0.14.20
repeatedly commented 7 years ago

Maybe this: https://docs.fluentd.org/v0.12/articles/plugin-management#plugin-version-management

stefano-pogliani commented 7 years ago

Thank you for the explanation, I missed that part of the docs.

As for the PR: would you be willing to except the remote file change I have made? I can't really maintain an apt-get repo for just one package unfortunately.