aboutsummaryrefslogtreecommitdiffstats
path: root/manifests/profile/base/database/redis.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/profile/base/database/redis.pp')
-rw-r--r--manifests/profile/base/database/redis.pp4
1 files changed, 2 insertions, 2 deletions
diff --git a/manifests/profile/base/database/redis.pp b/manifests/profile/base/database/redis.pp
index 14f6af4..e357359 100644
--- a/manifests/profile/base/database/redis.pp
+++ b/manifests/profile/base/database/redis.pp
@@ -34,10 +34,10 @@
class tripleo::profile::base::database::redis (
$bootstrap_nodeid = hiera('bootstrap_nodeid'),
$redis_node_ips = hiera('redis_node_ips'),
- $step = hiera('step'),
+ $step = Integer(hiera('step')),
) {
if $step >= 2 {
- if $bootstrap_nodeid == $::hostname {
+ if downcase($bootstrap_nodeid) == $::hostname {
$slaveof = undef
} else {
$slaveof = "${bootstrap_nodeid} 6379"