From 62dffeb9dad1394e27de4f8c709f6534ecab8ad3 Mon Sep 17 00:00:00 2001 From: Alex Schultz Date: Thu, 15 Jun 2017 13:17:08 -0600 Subject: Fix redis when hostname has capital letters The bootstrap_nodeid comparison should be case insensitive. Change-Id: I1e6672bb0219c1cf56ab21dd911c6f33e2436cc3 Closes-Bug: #1698190 --- manifests/profile/base/database/redis.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'manifests/profile/base/database') diff --git a/manifests/profile/base/database/redis.pp b/manifests/profile/base/database/redis.pp index 14f6af4..3890244 100644 --- a/manifests/profile/base/database/redis.pp +++ b/manifests/profile/base/database/redis.pp @@ -37,7 +37,7 @@ class tripleo::profile::base::database::redis ( $step = hiera('step'), ) { if $step >= 2 { - if $bootstrap_nodeid == $::hostname { + if downcase($bootstrap_nodeid) == $::hostname { $slaveof = undef } else { $slaveof = "${bootstrap_nodeid} 6379" -- cgit 1.2.3-korg