Merge ~hloeung/content-cache-charm:http2 into content-cache-charm:master
- Git
- lp:~hloeung/content-cache-charm
- http2
- Merge into master
Proposed by
Haw Loeung
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Haw Loeung | ||||
Approved revision: | 7d462a0c9da9045fbb895b070a3dc17bf0f5ee68 | ||||
Merged at revision: | 6dd9d7fa3f3613f6d3c3cbe05d2d8662a7849ad2 | ||||
Proposed branch: | ~hloeung/content-cache-charm:http2 | ||||
Merge into: | content-cache-charm:master | ||||
Diff against target: |
301 lines (+44/-43) 9 files modified
lib/haproxy.py (+4/-3) tests/unit/files/content_cache_rendered_haproxy_test_output.txt (+5/-5) tests/unit/files/content_cache_rendered_haproxy_test_output_auto_maxconns.txt (+5/-5) tests/unit/files/content_cache_rendered_haproxy_test_output_load_balancing_algorithm.txt (+5/-5) tests/unit/files/content_cache_rendered_haproxy_test_output_processes_and_threads.txt (+5/-5) tests/unit/files/content_cache_rendered_haproxy_test_output_processes_and_threads_haproxy2.txt (+5/-5) tests/unit/files/haproxy_config_rendered_backends_stanzas_test_output.txt (+5/-5) tests/unit/files/haproxy_config_rendered_test_output.txt (+5/-5) tests/unit/files/haproxy_config_rendered_test_output2.txt (+5/-5) |
||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Thomas Cuthbert (community) | Approve | ||
Canonical IS Reviewers | Pending | ||
Review via email: mp+414850@code.launchpad.net |
Commit message
Fixed use of ALPN - no h2 for HTTP checks; ALPN to backends only HAProxy 2
Description of the change
To post a comment you must log in.
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote : | # |
Revision history for this message
Thomas Cuthbert (tcuthbert) wrote : | # |
LGTM +1. It might be an idea to improve the way we build the tls_config lines so it's easier to adjust backend parameters.
review:
Approve
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote : | # |
Change successfully merged at revision 6dd9d7fa3f3613f
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | diff --git a/lib/haproxy.py b/lib/haproxy.py |
2 | index caade63..9f7691c 100644 |
3 | --- a/lib/haproxy.py |
4 | +++ b/lib/haproxy.py |
5 | @@ -242,12 +242,13 @@ backend backend-{name} |
6 | if loc_conf.get('backend-tls'): |
7 | tls_config = ( |
8 | ' ssl sni str({site_name}) check-sni {site_name} verify required' |
9 | - ' ca-file ca-certificates.crt alpn h2,http/1.1'.format(site_name=site_name) |
10 | + ' ca-file ca-certificates.crt'.format(site_name=site_name) |
11 | ) |
12 | ver = utils.package_version('haproxy') |
13 | - # With HAProxy 2, we also need check-alpn |
14 | + # With HAProxy 2 and above, ALPN to backends is supported. |
15 | if LooseVersion(ver) >= LooseVersion('2'): |
16 | - tls_config += ' check-alpn h2,http/1.1' |
17 | + # The checks are using HTTP/1.1 so we only want http/1.1 here, rather than h2. |
18 | + tls_config += ' alpn h2,http/1.1 check-alpn http/1.1' |
19 | inter_time = loc_conf.get('backend-inter-time', '5s') |
20 | fall_count = loc_conf.get('backend-fall-count', 5) |
21 | rise_count = loc_conf.get('backend-rise-count', 2) |
22 | diff --git a/tests/unit/files/content_cache_rendered_haproxy_test_output.txt b/tests/unit/files/content_cache_rendered_haproxy_test_output.txt |
23 | index 0b8e1d1..a37a6c8 100644 |
24 | --- a/tests/unit/files/content_cache_rendered_haproxy_test_output.txt |
25 | +++ b/tests/unit/files/content_cache_rendered_haproxy_test_output.txt |
26 | @@ -189,9 +189,9 @@ backend backend-site2-local |
27 | http-request set-header Host site2.local |
28 | option redispatch 1 |
29 | balance leastconn |
30 | - server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 |
31 | - server server_2 127.0.1.11:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 |
32 | - server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 |
33 | + server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt |
34 | + server server_2 127.0.1.11:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt |
35 | + server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt |
36 | |
37 | backend backend-cached-site3-local |
38 | option httpchk HEAD / HTTP/1.1\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk |
39 | @@ -251,7 +251,7 @@ backend backend-site6-local |
40 | http-request set-header Host site6.local |
41 | option redispatch 1 |
42 | balance leastconn |
43 | - server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(site6.local) check-sni site6.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 |
44 | + server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(site6.local) check-sni site6.local verify required ca-file ca-certificates.crt |
45 | |
46 | backend backend-cached-site7-local |
47 | option httpchk HEAD / HTTP/1.1\r\nHost:\ site7.local\r\nUser-Agent:\ haproxy/httpchk |
48 | @@ -286,7 +286,7 @@ backend backend-site8-local-2 |
49 | http-request set-header Host auth.site8.local |
50 | option redispatch 1 |
51 | balance leastconn |
52 | - server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(auth.site8.local) check-sni auth.site8.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 |
53 | + server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(auth.site8.local) check-sni auth.site8.local verify required ca-file ca-certificates.crt |
54 | |
55 | backend backend-cached-site9-local |
56 | option httpchk HEAD / HTTP/1.1\r\nHost:\ site9.local\r\nUser-Agent:\ haproxy/httpchk |
57 | diff --git a/tests/unit/files/content_cache_rendered_haproxy_test_output_auto_maxconns.txt b/tests/unit/files/content_cache_rendered_haproxy_test_output_auto_maxconns.txt |
58 | index a700412..ed69e91 100644 |
59 | --- a/tests/unit/files/content_cache_rendered_haproxy_test_output_auto_maxconns.txt |
60 | +++ b/tests/unit/files/content_cache_rendered_haproxy_test_output_auto_maxconns.txt |
61 | @@ -189,9 +189,9 @@ backend backend-site2-local |
62 | http-request set-header Host site2.local |
63 | option redispatch 1 |
64 | balance leastconn |
65 | - server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 |
66 | - server server_2 127.0.1.11:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 |
67 | - server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 |
68 | + server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt |
69 | + server server_2 127.0.1.11:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt |
70 | + server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt |
71 | |
72 | backend backend-cached-site3-local |
73 | option httpchk HEAD / HTTP/1.1\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk |
74 | @@ -251,7 +251,7 @@ backend backend-site6-local |
75 | http-request set-header Host site6.local |
76 | option redispatch 1 |
77 | balance leastconn |
78 | - server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(site6.local) check-sni site6.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 |
79 | + server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(site6.local) check-sni site6.local verify required ca-file ca-certificates.crt |
80 | |
81 | backend backend-cached-site7-local |
82 | option httpchk HEAD / HTTP/1.1\r\nHost:\ site7.local\r\nUser-Agent:\ haproxy/httpchk |
83 | @@ -286,7 +286,7 @@ backend backend-site8-local-2 |
84 | http-request set-header Host auth.site8.local |
85 | option redispatch 1 |
86 | balance leastconn |
87 | - server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(auth.site8.local) check-sni auth.site8.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 |
88 | + server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(auth.site8.local) check-sni auth.site8.local verify required ca-file ca-certificates.crt |
89 | |
90 | backend backend-cached-site9-local |
91 | option httpchk HEAD / HTTP/1.1\r\nHost:\ site9.local\r\nUser-Agent:\ haproxy/httpchk |
92 | diff --git a/tests/unit/files/content_cache_rendered_haproxy_test_output_load_balancing_algorithm.txt b/tests/unit/files/content_cache_rendered_haproxy_test_output_load_balancing_algorithm.txt |
93 | index 215beb5..b1e58f1 100644 |
94 | --- a/tests/unit/files/content_cache_rendered_haproxy_test_output_load_balancing_algorithm.txt |
95 | +++ b/tests/unit/files/content_cache_rendered_haproxy_test_output_load_balancing_algorithm.txt |
96 | @@ -189,9 +189,9 @@ backend backend-site2-local |
97 | http-request set-header Host site2.local |
98 | option redispatch 1 |
99 | balance roundrobin |
100 | - server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 |
101 | - server server_2 127.0.1.11:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 |
102 | - server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 |
103 | + server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt |
104 | + server server_2 127.0.1.11:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt |
105 | + server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt |
106 | |
107 | backend backend-cached-site3-local |
108 | option httpchk HEAD / HTTP/1.1\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk |
109 | @@ -251,7 +251,7 @@ backend backend-site6-local |
110 | http-request set-header Host site6.local |
111 | option redispatch 1 |
112 | balance roundrobin |
113 | - server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(site6.local) check-sni site6.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 |
114 | + server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(site6.local) check-sni site6.local verify required ca-file ca-certificates.crt |
115 | |
116 | backend backend-cached-site7-local |
117 | option httpchk HEAD / HTTP/1.1\r\nHost:\ site7.local\r\nUser-Agent:\ haproxy/httpchk |
118 | @@ -286,7 +286,7 @@ backend backend-site8-local-2 |
119 | http-request set-header Host auth.site8.local |
120 | option redispatch 1 |
121 | balance roundrobin |
122 | - server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(auth.site8.local) check-sni auth.site8.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 |
123 | + server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(auth.site8.local) check-sni auth.site8.local verify required ca-file ca-certificates.crt |
124 | |
125 | backend backend-cached-site9-local |
126 | option httpchk HEAD / HTTP/1.1\r\nHost:\ site9.local\r\nUser-Agent:\ haproxy/httpchk |
127 | diff --git a/tests/unit/files/content_cache_rendered_haproxy_test_output_processes_and_threads.txt b/tests/unit/files/content_cache_rendered_haproxy_test_output_processes_and_threads.txt |
128 | index b9ee1fa..bb18c43 100644 |
129 | --- a/tests/unit/files/content_cache_rendered_haproxy_test_output_processes_and_threads.txt |
130 | +++ b/tests/unit/files/content_cache_rendered_haproxy_test_output_processes_and_threads.txt |
131 | @@ -190,9 +190,9 @@ backend backend-site2-local |
132 | http-request set-header Host site2.local |
133 | option redispatch 1 |
134 | balance leastconn |
135 | - server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 |
136 | - server server_2 127.0.1.11:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 |
137 | - server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 |
138 | + server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt |
139 | + server server_2 127.0.1.11:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt |
140 | + server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt |
141 | |
142 | backend backend-cached-site3-local |
143 | option httpchk HEAD / HTTP/1.1\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk |
144 | @@ -252,7 +252,7 @@ backend backend-site6-local |
145 | http-request set-header Host site6.local |
146 | option redispatch 1 |
147 | balance leastconn |
148 | - server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(site6.local) check-sni site6.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 |
149 | + server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(site6.local) check-sni site6.local verify required ca-file ca-certificates.crt |
150 | |
151 | backend backend-cached-site7-local |
152 | option httpchk HEAD / HTTP/1.1\r\nHost:\ site7.local\r\nUser-Agent:\ haproxy/httpchk |
153 | @@ -287,7 +287,7 @@ backend backend-site8-local-2 |
154 | http-request set-header Host auth.site8.local |
155 | option redispatch 1 |
156 | balance leastconn |
157 | - server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(auth.site8.local) check-sni auth.site8.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 |
158 | + server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(auth.site8.local) check-sni auth.site8.local verify required ca-file ca-certificates.crt |
159 | |
160 | backend backend-cached-site9-local |
161 | option httpchk HEAD / HTTP/1.1\r\nHost:\ site9.local\r\nUser-Agent:\ haproxy/httpchk |
162 | diff --git a/tests/unit/files/content_cache_rendered_haproxy_test_output_processes_and_threads_haproxy2.txt b/tests/unit/files/content_cache_rendered_haproxy_test_output_processes_and_threads_haproxy2.txt |
163 | index 0b8934b..a788d15 100644 |
164 | --- a/tests/unit/files/content_cache_rendered_haproxy_test_output_processes_and_threads_haproxy2.txt |
165 | +++ b/tests/unit/files/content_cache_rendered_haproxy_test_output_processes_and_threads_haproxy2.txt |
166 | @@ -191,9 +191,9 @@ backend backend-site2-local |
167 | retry-on all-retryable-errors |
168 | option redispatch 1 |
169 | balance leastconn |
170 | - server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 check-alpn h2,http/1.1 |
171 | - server server_2 127.0.1.11:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 check-alpn h2,http/1.1 |
172 | - server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 check-alpn h2,http/1.1 |
173 | + server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 check-alpn http/1.1 |
174 | + server server_2 127.0.1.11:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 check-alpn http/1.1 |
175 | + server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 check-alpn http/1.1 |
176 | |
177 | backend backend-cached-site3-local |
178 | option httpchk HEAD / HTTP/1.1\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk |
179 | @@ -257,7 +257,7 @@ backend backend-site6-local |
180 | retry-on all-retryable-errors |
181 | option redispatch 1 |
182 | balance leastconn |
183 | - server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(site6.local) check-sni site6.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 check-alpn h2,http/1.1 |
184 | + server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(site6.local) check-sni site6.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 check-alpn http/1.1 |
185 | |
186 | backend backend-cached-site7-local |
187 | option httpchk HEAD / HTTP/1.1\r\nHost:\ site7.local\r\nUser-Agent:\ haproxy/httpchk |
188 | @@ -295,7 +295,7 @@ backend backend-site8-local-2 |
189 | retry-on all-retryable-errors |
190 | option redispatch 1 |
191 | balance leastconn |
192 | - server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(auth.site8.local) check-sni auth.site8.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 check-alpn h2,http/1.1 |
193 | + server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(auth.site8.local) check-sni auth.site8.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 check-alpn http/1.1 |
194 | |
195 | backend backend-cached-site9-local |
196 | option httpchk HEAD / HTTP/1.1\r\nHost:\ site9.local\r\nUser-Agent:\ haproxy/httpchk |
197 | diff --git a/tests/unit/files/haproxy_config_rendered_backends_stanzas_test_output.txt b/tests/unit/files/haproxy_config_rendered_backends_stanzas_test_output.txt |
198 | index b3eab8c..ed6d54b 100644 |
199 | --- a/tests/unit/files/haproxy_config_rendered_backends_stanzas_test_output.txt |
200 | +++ b/tests/unit/files/haproxy_config_rendered_backends_stanzas_test_output.txt |
201 | @@ -11,9 +11,9 @@ backend backend-site2-local |
202 | option httpchk GET /check/ HTTP/1.1\r\nHost:\ site2.local\r\nUser-Agent:\ haproxy/httpchk |
203 | http-request set-header Host site2.local |
204 | balance leastconn |
205 | - server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 |
206 | - server server_2 127.0.1.11:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 |
207 | - server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 |
208 | + server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt |
209 | + server server_2 127.0.1.11:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt |
210 | + server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt |
211 | |
212 | backend backend-site3-local |
213 | option httpchk HEAD / HTTP/1.1\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk |
214 | @@ -41,7 +41,7 @@ backend backend-site6-local |
215 | option httpchk HEAD / HTTP/1.1\r\nHost:\ site6.local\r\nUser-Agent:\ haproxy/httpchk |
216 | http-request set-header Host site6.local |
217 | balance leastconn |
218 | - server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(site6.local) check-sni site6.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 |
219 | + server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(site6.local) check-sni site6.local verify required ca-file ca-certificates.crt |
220 | |
221 | backend backend-site7-local |
222 | option httpchk HEAD / HTTP/1.1\r\nHost:\ site7.local\r\nUser-Agent:\ haproxy/httpchk |
223 | @@ -59,7 +59,7 @@ backend backend-site8-local-2 |
224 | option httpchk HEAD / HTTP/1.1\r\nHost:\ auth.site8.local\r\nUser-Agent:\ haproxy/httpchk |
225 | http-request set-header Host auth.site8.local |
226 | balance leastconn |
227 | - server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(auth.site8.local) check-sni auth.site8.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 |
228 | + server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(auth.site8.local) check-sni auth.site8.local verify required ca-file ca-certificates.crt |
229 | |
230 | backend backend-site9-local |
231 | option httpchk HEAD / HTTP/1.1\r\nHost:\ site9.local\r\nUser-Agent:\ haproxy/httpchk |
232 | diff --git a/tests/unit/files/haproxy_config_rendered_test_output.txt b/tests/unit/files/haproxy_config_rendered_test_output.txt |
233 | index 9cf899e..3d927ab 100644 |
234 | --- a/tests/unit/files/haproxy_config_rendered_test_output.txt |
235 | +++ b/tests/unit/files/haproxy_config_rendered_test_output.txt |
236 | @@ -119,9 +119,9 @@ backend backend-site2-local |
237 | option httpchk GET /check/ HTTP/1.1\r\nHost:\ site2.local\r\nUser-Agent:\ haproxy/httpchk |
238 | http-request set-header Host site2.local |
239 | balance leastconn |
240 | - server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 |
241 | - server server_2 127.0.1.11:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 |
242 | - server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 |
243 | + server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt |
244 | + server server_2 127.0.1.11:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt |
245 | + server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt |
246 | |
247 | backend backend-site3-local |
248 | option httpchk HEAD / HTTP/1.1\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk |
249 | @@ -149,7 +149,7 @@ backend backend-site6-local |
250 | option httpchk HEAD / HTTP/1.1\r\nHost:\ site6.local\r\nUser-Agent:\ haproxy/httpchk |
251 | http-request set-header Host site6.local |
252 | balance leastconn |
253 | - server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(site6.local) check-sni site6.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 |
254 | + server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(site6.local) check-sni site6.local verify required ca-file ca-certificates.crt |
255 | |
256 | backend backend-site7-local |
257 | option httpchk HEAD / HTTP/1.1\r\nHost:\ site7.local\r\nUser-Agent:\ haproxy/httpchk |
258 | @@ -167,7 +167,7 @@ backend backend-site8-local-2 |
259 | option httpchk HEAD / HTTP/1.1\r\nHost:\ auth.site8.local\r\nUser-Agent:\ haproxy/httpchk |
260 | http-request set-header Host auth.site8.local |
261 | balance leastconn |
262 | - server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(auth.site8.local) check-sni auth.site8.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 |
263 | + server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(auth.site8.local) check-sni auth.site8.local verify required ca-file ca-certificates.crt |
264 | |
265 | backend backend-site9-local |
266 | option httpchk HEAD / HTTP/1.1\r\nHost:\ site9.local\r\nUser-Agent:\ haproxy/httpchk |
267 | diff --git a/tests/unit/files/haproxy_config_rendered_test_output2.txt b/tests/unit/files/haproxy_config_rendered_test_output2.txt |
268 | index 7aa5a43..04db8e4 100644 |
269 | --- a/tests/unit/files/haproxy_config_rendered_test_output2.txt |
270 | +++ b/tests/unit/files/haproxy_config_rendered_test_output2.txt |
271 | @@ -119,9 +119,9 @@ backend backend-site2-local |
272 | option httpchk GET /check/ HTTP/1.1\r\nHost:\ site2.local\r\nUser-Agent:\ haproxy/httpchk |
273 | http-request set-header Host site2.local |
274 | balance leastconn |
275 | - server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 |
276 | - server server_2 127.0.1.11:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 |
277 | - server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 |
278 | + server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt |
279 | + server server_2 127.0.1.11:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt |
280 | + server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt |
281 | |
282 | backend backend-site3-local |
283 | option httpchk HEAD / HTTP/1.1\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk |
284 | @@ -149,7 +149,7 @@ backend backend-site6-local |
285 | option httpchk HEAD / HTTP/1.1\r\nHost:\ site6.local\r\nUser-Agent:\ haproxy/httpchk |
286 | http-request set-header Host site6.local |
287 | balance leastconn |
288 | - server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(site6.local) check-sni site6.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 |
289 | + server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(site6.local) check-sni site6.local verify required ca-file ca-certificates.crt |
290 | |
291 | backend backend-site7-local |
292 | option httpchk HEAD / HTTP/1.1\r\nHost:\ site7.local\r\nUser-Agent:\ haproxy/httpchk |
293 | @@ -167,7 +167,7 @@ backend backend-site8-local-2 |
294 | option httpchk HEAD / HTTP/1.1\r\nHost:\ auth.site8.local\r\nUser-Agent:\ haproxy/httpchk |
295 | http-request set-header Host auth.site8.local |
296 | balance leastconn |
297 | - server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(auth.site8.local) check-sni auth.site8.local verify required ca-file ca-certificates.crt alpn h2,http/1.1 |
298 | + server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(auth.site8.local) check-sni auth.site8.local verify required ca-file ca-certificates.crt |
299 | |
300 | backend backend-site9-local |
301 | option httpchk HEAD / HTTP/1.1\r\nHost:\ site9.local\r\nUser-Agent:\ haproxy/httpchk |
This merge proposal is being monitored by mergebot. Change the status to Approved to merge.