puppet-tripleo/spec/defines
Michele Baldessari ea2ce7da21 Allow custom per-service listen_options for haproxy
There are situations where it would be advantageous to let
an operator specify custom per-service options.
One such use case seen in the wild is to extend the timeout of the cinder
because due to the specific storage backend these cinder operations
sometimes take a bit longer. Letting the user tweak the
haproxy_default_timeout is likely not what we want as for the case
above we only want to tweak a single service.

We explored another approach to fix this by adding a bunch of
<service>_options class parameters in the tripleo::haproxy class but it
made it extremely bloated and confusing, so we opted for this approach
which is much less invasive both code-wise and complexity-wise

Tested by deploying with:
ExtraConfig:
  tripleo::haproxy::cinder::options:
    "timeout client": '90m'
    'timeout server': '90m'

And observing the following cinder haproxy stanza:
listen cinder
  bind 10.0.0.4:8776 transparent
  bind 172.16.2.9:8776 transparent
  mode http
  http-request set-header X-Forwarded-Proto https if { ssl_fc }
  http-request set-header X-Forwarded-Proto http if !{ ssl_fc }
  option httpchk
  option httplog
  timeout client 90m
  timeout server 90m
  server overcloud-controller-0.internalapi.localdomain 172.16.2.7:8776 check fall 5 inter 2000 rise 2
  server overcloud-controller-1.internalapi.localdomain 172.16.2.16:8776 check fall 5 inter 2000 rise 2
  server overcloud-controller-2.internalapi.localdomain 172.16.2.13:8776 check fall 5 inter 2000 rise 2

Closes-Bug: #1755711

Change-Id: Icb7f026190b310d34c47dc059e2fdb22031b0963
(cherry picked from commit ce4576375d)
2018-03-19 08:49:53 +01:00
..
tripleo_certmonger_httpd_spec.rb Move tripleo::certmonger::httpd to defines folder and fix suffix 2017-06-08 09:34:45 +03:00
tripleo_firewall_service_rules_spec.rb correct unit tests 2017-12-16 09:36:18 +01:00
tripleo_haproxy_endpoint_spec.rb Allow custom per-service listen_options for haproxy 2018-03-19 08:49:53 +01:00
tripleo_haproxy_service_endpoints_spec.rb Merge "Add Basic Authentication support for HAProxy" 2017-12-19 20:52:30 +00:00
tripleo_haproxy_userlist_spec.rb Add Basic Authentication support for HAProxy 2017-12-16 09:37:27 +01:00
tripleo_host_sriov_numvfs_persistence_spec.rb hw ovs offload - On some machines representor ports not created after reboot 2018-01-29 11:32:24 +00:00