Enable client address in Horizon's logs.
authorDimitri Savineau <dsavinea@redhat.com>
Wed, 23 Mar 2016 15:49:41 +0000 (11:49 -0400)
committerDimitri Savineau <dsavinea@redhat.com>
Fri, 15 Apr 2016 15:28:02 +0000 (11:28 -0400)
commitddecbab150ea87b12819af7b2cc8a23d4ccf1a82
treef2e1b331cc29b6c44c3e1b1206cb5e689434ed06
parent4afed8617e56b1d9648955b971d5c2e4cd3cd7f8
Enable client address in Horizon's logs.

Horizon's backends (httpd) see IP address of the haproxy in the logs instead
of the client address.
This patch allows to:
  - Install the remoteip httpd module [1].
  - Use the X-Forwarded-For HTTP header and override the haproxy address.
  - Configure the Horizon's logs with the client address via httpd logformat.

[1] https://httpd.apache.org/docs/2.4/mod/mod_remoteip.html
[2] https://httpd.apache.org/docs/2.4/mod/mod_log_config.html#logformat

Change-Id: Ib2f215913065426848b48f6293f33a75aff3d328
Depends-On: I54f0f5549d64768dacca71539c71a28cc99d9d95
puppet/controller.yaml
puppet/hieradata/controller.yaml
puppet/manifests/overcloud_controller.pp
puppet/manifests/overcloud_controller_pacemaker.pp