Add missing response to Redis tcp-check in HAProxy
HAProxy Redis configuration contains the tcp-check section.
That tcp-check section is missing authentication response.
Auth request:
> tcp-check send AUTH\ password\r\n
Should be followed by:
> expect string +OK
This make sure we won't continue when auth was not suncesful.
Change-Id: Ia4d615a2a038f0b2e5e33f4b0eabe7f777a74145
Closes-Bug: #1843535
This commit is contained in:
@@ -1470,7 +1470,8 @@ class tripleo::haproxy (
|
|||||||
$redis_ssl_member_options = []
|
$redis_ssl_member_options = []
|
||||||
}
|
}
|
||||||
if $redis_password {
|
if $redis_password {
|
||||||
$redis_tcp_check_password_options = ["send AUTH\\ ${redis_password}\\r\\n"]
|
$redis_tcp_check_password_options = ["send AUTH\\ ${redis_password}\\r\\n",
|
||||||
|
'expect string +OK']
|
||||||
} else {
|
} else {
|
||||||
$redis_tcp_check_password_options = []
|
$redis_tcp_check_password_options = []
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user