Fix the read mariadb log permission issue for fluentd

mariadb.log mode is 660, which can not be read by fluentd. Add td-agent
user into mysql group to allow fluent to read the log.

Closes-Bug: #1664867
Change-Id: If624002909d5fcd0bb82a5bc9937945518ec84b9
This commit is contained in:
Jeffrey Zhang 2017-02-15 16:00:00 +08:00
parent 2a03b895d5
commit cc543ab7c4

View File

@ -5,7 +5,7 @@ MAINTAINER {{ maintainer }}
{% import "macros.j2" as macros with context %}
{{ macros.configure_user(name='td-agent') }}
{{ macros.configure_user(name='td-agent', groups='mysql') }}
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}