aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉric Lemoine <elemoine@mirantis.com>2016-03-04 15:26:01 +0100
committerÉric Lemoine <elemoine@mirantis.com>2016-03-04 15:34:42 +0100
commit7a9257b482477cdc457c5efe7742a2dd9a5b9125 (patch)
tree5016eda404beaef5247b13d4c8ef7f20047b69c4
parentebc1bbb08132f1cc638ea3c18773ce95fbe421c4 (diff)
downloadkolla-7a9257b482477cdc457c5efe7742a2dd9a5b9125.tar.gz
kolla-7a9257b482477cdc457c5efe7742a2dd9a5b9125.zip
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
-rw-r--r--ansible/roles/manila/templates/manila.conf.j21
1 files changed, 1 insertions, 0 deletions
diff --git a/ansible/roles/manila/templates/manila.conf.j2 b/ansible/roles/manila/templates/manila.conf.j2
index 907578e41..16355c760 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'] }}