puppet-openstack-integration/manifests/redis.pp
Takashi Kajinami bf1a8bda62 Use puppet-redis to deploy Redis
Change-Id: I955452d98399ba01af101f872235958a7b8c96c3
2022-02-07 17:31:39 +09:00

28 lines
739 B
Puppet

class openstack_integration::redis {
include openstack_integration::config
# TODO(tkajinam): Remove this once puppet-redis supports CentOS 9
case $::osfamily {
'Debian': {
$redis_config = '/etc/redis/redis.conf'
}
'RedHat': {
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}")
}
}
class { 'redis':
bind => $::openstack_integration::config::host,
config_file => $redis_config,
config_file_orig => "${redis_config}.puppet",
ulimit_managed => false,
}
}