From 7a9257b482477cdc457c5efe7742a2dd9a5b9125 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=89ric=20Lemoine?= <elemoine@mirantis.com>
Date: Fri, 4 Mar 2016 15:26:01 +0100
Subject: [PATCH] Use use_forwarded_for in manila config

In https://review.openstack.org/#/c/286876 the use_forwarded_for
option was removed from the Manila configuration. Manila does support
that option so it should be kept for logs to include the appropriate
clien IP address.

TrivialFix

Change-Id: I0279ad24a2331ce7e6e292549013b9553fe1a6f3
Related-Bug: #1548935
---
 ansible/roles/manila/templates/manila.conf.j2 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ansible/roles/manila/templates/manila.conf.j2 b/ansible/roles/manila/templates/manila.conf.j2
index 907578e417..16355c760d 100644
--- a/ansible/roles/manila/templates/manila.conf.j2
+++ b/ansible/roles/manila/templates/manila.conf.j2
@@ -2,6 +2,7 @@
 debug = {{ manila_logging_debug }}
 
 log_dir = /var/log/kolla/manila
+use_forwarded_for = true
 
 my_ip = {{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}