From 35b91cf7b78af7299fc966e5e6e6c642645fced4 Mon Sep 17 00:00:00 2001 From: Jeffrey Zhang <zhang.lei.fly@gmail.com> Date: Wed, 24 Jan 2018 10:13:48 +0800 Subject: [PATCH] Disable jinja2 trim_blocks feature otherwise, if the jinja2 blocks at the end of the line, it will remove the last newline character and join two lines into one. Change-Id: Ie710342fb034e477ff854eba3915dd845bddd257 --- ansible/roles/haproxy/templates/haproxy.cfg.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible/roles/haproxy/templates/haproxy.cfg.j2 b/ansible/roles/haproxy/templates/haproxy.cfg.j2 index 24a08f78d9..7aad6b5bed 100644 --- a/ansible/roles/haproxy/templates/haproxy.cfg.j2 +++ b/ansible/roles/haproxy/templates/haproxy.cfg.j2 @@ -1,3 +1,4 @@ +#jinja2: trim_blocks: False {% set tls_bind_info = 'ssl crt /etc/haproxy/haproxy.pem' if kolla_enable_tls_external | bool else '' %} global chroot /var/lib/haproxy