Skip to content

Commit

Permalink
Update tripleo to a3f18d9a1acff607932071b492433f2073c8a0b2
Browse files Browse the repository at this point in the history
a3f18d9a1acff607932071b492433f2073c8a0b2 Allow the Redis specific monitor to use authentication

Change-Id: I554223cf6a4b3f93455573109dfbc50a94f1ee53
  • Loading branch information
jguiditta committed Mar 24, 2016
1 parent 2e93039 commit 3c6ba96
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Puppetfile
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ mod 'tomcat',
:git => 'https://github.com/puppetlabs/puppetlabs-tomcat.git'

mod 'tripleo',
:commit => 'b34e7cb9ed8984a98ba3e3deda184f7c6461149c',
:commit => 'a3f18d9a1acff607932071b492433f2073c8a0b2',
:git => 'https://github.com/openstack/puppet-tripleo.git'

mod 'trove',
Expand Down
13 changes: 12 additions & 1 deletion tripleo/manifests/loadbalancer.pp
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,11 @@
# (optional) Enable or not Redis binding
# Defaults to false
#
# [*redis_password*]
# (optional) Password for Redis authentication, eventually needed by the
# specific monitoring we do from HAProxy for Redis
# Defaults to undef
#
# [*midonet_api*]
# (optional) Enable or not MidoNet API binding
# Defaults to false
Expand Down Expand Up @@ -365,6 +370,7 @@
$mysql_clustercheck = false,
$rabbitmq = false,
$redis = false,
$redis_password = undef,
$midonet_api = false,
$service_ports = {}
) {
Expand Down Expand Up @@ -1173,12 +1179,17 @@
}

if $redis {
if $redis_password {
$redis_tcp_check_options = ["send AUTH\\ ${redis_password}\\r\\n"]
} else {
$redis_tcp_check_options = []
}
haproxy::listen { 'redis':
bind => $redis_bind_opts,
options => {
'balance' => 'first',
'option' => ['tcp-check',],
'tcp-check' => ['send info\ replication\r\n','expect string role:master'],
'tcp-check' => union($redis_tcp_check_options, ['send PING\r\n','expect string +PONG','send info\ replication\r\n','expect string role:master','send QUIT\r\n','expect string +OK']),
},
collect_exported => false,
}
Expand Down

0 comments on commit 3c6ba96

Please sign in to comment.