From 12d6eeceb5dc1021d66aa89930606cc9bc04e79f Mon Sep 17 00:00:00 2001 From: Jeffrey Zhang Date: Fri, 4 Mar 2016 23:49:01 +0800 Subject: Copy the logs out of the container Heka logs almost done. When testing, The collected logs can copy to the /tmp/logs folder, which will be handle by the gate. This will be very useful for our gate debug. TrivialFix Change-Id: I06ca8ebd13933bfd15cb2fb5e53fc3038b17b8c3 --- ansible/roles/common/templates/heka-haproxy.toml.j2 | 2 ++ ansible/roles/common/templates/heka-swift.toml.j2 | 1 + 2 files changed, 3 insertions(+) (limited to 'ansible') diff --git a/ansible/roles/common/templates/heka-haproxy.toml.j2 b/ansible/roles/common/templates/heka-haproxy.toml.j2 index d933a6f55..3292ee554 100644 --- a/ansible/roles/common/templates/heka-haproxy.toml.j2 +++ b/ansible/roles/common/templates/heka-haproxy.toml.j2 @@ -6,9 +6,11 @@ type = "FileOutput" message_matcher = "Type == 'Syslog' && Fields[programname] =~ /(?i:haproxy)/" path = "/var/log/kolla/haproxy/haproxy.log" encoder = "syslog_encoder" +folder_perm = "755" [keepalived_file_output] type = "FileOutput" message_matcher = "Type == 'Syslog' && Fields[programname] =~ /(?i:keepalived)/" path = "/var/log/kolla/haproxy/keepalived.log" encoder = "syslog_encoder" +folder_perm = "755" diff --git a/ansible/roles/common/templates/heka-swift.toml.j2 b/ansible/roles/common/templates/heka-swift.toml.j2 index 3bb520e32..96df3041d 100644 --- a/ansible/roles/common/templates/heka-swift.toml.j2 +++ b/ansible/roles/common/templates/heka-swift.toml.j2 @@ -6,3 +6,4 @@ type = "FileOutput" message_matcher = "Type == 'Syslog' && Fields[programname] == '{{ item }}'" path = "/var/log/kolla/swift/{{ item }}.log" encoder = "syslog_encoder" +folder_perm = "755" -- cgit v1.2.3