From bb97772d807925e3cd9153c252edc9a75710bd56 Mon Sep 17 00:00:00 2001 From: Alfredo Moralejo Date: Thu, 20 May 2021 09:39:59 +0200 Subject: [PATCH] Fix redis config location for centos > 8 The location of redis configuration has been moved to /etc/redis/redis.conf in CentOS9 [1]. This patch is fixing redis_config parameter to cover this new case. [1] https://gitlab.com/redhat/centos-stream/rpms/redis/-/blob/c9s/redis.spec#L332 Change-Id: I92beff3ecc45fba5c12e49351dc8d9f7576777f1 --- manifests/redis.pp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/manifests/redis.pp b/manifests/redis.pp index c417184ad..33d06ecc7 100644 --- a/manifests/redis.pp +++ b/manifests/redis.pp @@ -12,7 +12,11 @@ class openstack_integration::redis { 'RedHat': { $redis_package_name = 'redis' $redis_service_name = 'redis' - $redis_config = '/etc/redis.conf' + if versioncmp($::operatingsystemmajrelease, '8') > 0 { + $redis_config = '/etc/redis/redis.conf' + } else { + $redis_config = '/etc/redis.conf' + } } default: { fail("redis.pp manifest does not support family: ${::osfamily}")