aboutsummaryrefslogtreecommitdiffstats
path: root/manifests
diff options
context:
space:
mode:
authorAlex Schultz <aschultz@redhat.com>2017-06-15 13:17:08 -0600
committerAlex Schultz <aschultz@redhat.com>2017-06-15 13:17:08 -0600
commit62dffeb9dad1394e27de4f8c709f6534ecab8ad3 (patch)
tree55d0b0d04462232d3e4259d0a0d0370b23703520 /manifests
parent5e91493f7aaecef924a78f0743f812a225080085 (diff)
Fix redis when hostname has capital letters
The bootstrap_nodeid comparison should be case insensitive. Change-Id: I1e6672bb0219c1cf56ab21dd911c6f33e2436cc3 Closes-Bug: #1698190
Diffstat (limited to 'manifests')
-rw-r--r--manifests/profile/base/database/redis.pp2
1 files changed, 1 insertions, 1 deletions
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"