aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/fluentd/templates/fluentd.json.j2
blob: 906978f43d80c0571fdbf1d43c396d004341b944 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
    "command": "fluentd -c /etc/fluentd/fluentd.conf -o /var/log/kolla/fluentd/fluentd.log",
    "config_files": [
        {
            "source": "{{ container_config_directory }}/fluentd.conf",
            "dest": "/etc/fluentd/fluentd.conf",
            "owner": "fluentd",
            "perm": "0600"
        }{% if kolla_copy_ca_into_containers | bool %},
        {
            "source": "{{ container_config_directory }}/ca-certificates",
            "dest": "/var/lib/kolla/share/ca-certificates",
            "owner": "root",
            "perm": "0600"
        }{% endif %}
    ],
    "permissions": [
        {
            "path": "/var/log/kolla/fluentd",
            "owner": "fluentd:fluentd",
            "recurse": true
        },
{% for facility in syslog_facilities | selectattr('enabled') %}
        {
            "path": "/var/log/kolla/{{ facility.logdir }}",
            "owner": "fluentd:fluentd",
            "recurse": true
        },
{% endfor %}
{% if enable_fluentd_systemd | bool %}
        {
            "path": "/var/log/journal",
            "owner": "fluentd:fluentd",
            "recurse": true
        },
{% endif %}
        {
            "path": "/var/lib/fluentd/data",
            "owner": "fluentd:fluentd",
            "recurse": true
        }
    ]

}