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
This commit is contained in:
Alfredo Moralejo 2021-05-20 09:39:59 +02:00
parent acdcae90f7
commit bb97772d80

View File

@ -12,8 +12,12 @@ class openstack_integration::redis {
'RedHat': {
$redis_package_name = 'redis'
$redis_service_name = 'redis'
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}")
}