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
(cherry picked from commit cc543ab7c4
)
This commit is contained in:
parent
3a5b54e592
commit
8b685894fa
@ -5,7 +5,7 @@ MAINTAINER {{ maintainer }}
|
|||||||
|
|
||||||
{% import "macros.j2" as macros with context %}
|
{% 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'] %}
|
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user