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:
parent
acdcae90f7
commit
bb97772d80
@ -12,7 +12,11 @@ class openstack_integration::redis {
|
|||||||
'RedHat': {
|
'RedHat': {
|
||||||
$redis_package_name = 'redis'
|
$redis_package_name = 'redis'
|
||||||
$redis_service_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: {
|
default: {
|
||||||
fail("redis.pp manifest does not support family: ${::osfamily}")
|
fail("redis.pp manifest does not support family: ${::osfamily}")
|
||||||
|
Loading…
Reference in New Issue
Block a user