Add parameters for template of type None
Haproxy formula allows to set listen template type
to None which gives opportunity to set configuration
parametes manually. The patch adds ability to set more
parameters if needed
Change-Id: Idbae84b2462826523713e69fb9da7ce2e1816fed
Related-PROD: PROD-19713
diff --git a/README.rst b/README.rst
index ca1650e..9710e5f 100644
--- a/README.rst
+++ b/README.rst
@@ -561,6 +561,67 @@
...
type: http
+Implement haproxy configuration without specifying certain type or with type='None'.
+This approach allows to set all major haproxy parameters manually.
+Sample pillar:
+
+.. code-block:: yaml
+
+ haproxy:
+ proxy:
+ listen:
+ manila_api:
+ type: None
+ mode: tcp
+ balance: roundrobin
+ timeout:
+ check: 10
+ client: 20
+ http_request:
+ - action: "add-header X-Forwarded-Proto https"
+ condition: "if { ssl_fc }"
+ options: ${_param:haproxy_https_check_options}
+ capture:
+ - cookie ASPSESSION len 32
+ - request header Host len 15
+ compression:
+ - algo gzip
+ - type text/html text/plain
+ declare_capture: request len 50
+ email_alert:
+ - myhostname myserver
+ - from server@localhost
+ - level warning
+ errorfile:
+ file_500:
+ code: 500
+ file: /tmp/error_500.log
+ file_404:
+ code: 400
+ file: /tmp/error_400.log
+ max_keep_alive_queue: 100
+ maxconn: 10000
+ reqadd:
+ - X-Proto:\ SSL if is-ssl
+ reqirep:
+ - ^Host:\ www.mydomain.com Host:\ www
+ modify_headers:
+ - reqallow ^Host:\ www\.
+ - reqdel ^Host:\ .*\.local
+ - reqdeny ^Host:\ .*\.local
+ - reqiallow ^Host:\ www\.
+ - reqidel ^Host:\ .*\.local
+ - reqideny ^Host:\ .*\.local
+ - reqipass ^Host:\ .*\.local
+ - reqpass ^Host:\ .*\.local
+ - reqitarpit ^Host:\ .*\.local
+ - reqtarpit ^Host:\ .*\.local
+ retries: 10
+ stats:
+ - enable
+ - auth admin1:AdMiN123
+ rate_limit_sessions: 1000
+
Read more
=========