Redis: Hard-code paths of configuration files

In current CentOS 9 Stream, configuration files of redis is placed in
/etc/redis. Following that, the puppet-redis module has been updated to
use the new path by [1].

This change ensures that the old path is consistently used in both
CentOS 8 and CentOS 9 as we require a hard-coded path to start up
redis in standalone mode(without pacemaker). The path can be updated
later, for example when we drop support for CentOS 8.

[1] https://github.com/voxpupuli/puppet-redis/pull/434

Closes-Bug: #1960620
Change-Id: Ibf7c2f8d01ddf73c92d183e51c378a0770002e72
This commit is contained in:
Takashi Kajinami 2022-02-05 23:22:33 +09:00
parent 557a392c9a
commit e93b454d68
1 changed files with 7 additions and 0 deletions

View File

@ -94,6 +94,13 @@ outputs:
map_merge:
- {get_attr: [RedisBase, role_data, config_settings]}
- redis::daemonize: false
# NOTE(tkajinam): In CentOS9, the file is placed under /etc/redis.
# Redis resource agent can deal with both of
# the old path and the new path, but the command
# line below for standalone redis does not.
# TODO(tkajinam): Remove this when we drop support for CentOS8.
redis::config_file: '/etc/redis.conf'
redis::config_file_orig: '/etc/redis.conf.puppet'
tripleo::stunnel::manage_service: false
tripleo::stunnel::foreground: 'yes'
- tripleo::profile::base::database::redis::tls_proxy_bind_ip: