13 Commits

Author SHA1 Message Date
Takashi Kajinami
ca4a544416 Redis: Enable SSL
This updates the redis server/client configuration so that ssl is
enabled if the scenario globally enables ssl.

Change-Id: Ic5c2bcc5ec256bc91e2dcd08337f8d1fa0ea49d8
2023-03-21 00:55:36 +09:00
Takashi Kajinami
3a27628625 Redis: Enable authentication
Change-Id: Ie8b903d1b6e60d7c8f718f92d25907b5f638e888
2023-03-20 20:15:58 +09:00
Takashi Kajinami
f046bf6ee7 Remove workaround for puppet-redis + CentOS Stream 9
... because puppet-redis supports CentOS Stream 9 since v8.3.0 and
uses the correct file path automatically.

[1] 9d2e3fc5b6

Change-Id: I9d2d78fe98d3a6f820b5356a78f4cf599a6d6d27
2022-06-24 11:39:50 +09:00
Takashi Kajinami
bf1a8bda62 Use puppet-redis to deploy Redis
Change-Id: I955452d98399ba01af101f872235958a7b8c96c3
2022-02-07 17:31:39 +09:00
Takashi Kajinami
d8c452f91a Remove workaround for masked redis-server.service
This is revert of 74022b48ddb6312bcc3b82a92b9bc45fdcbf04f1 and its
follow up commit 46b503f7b02f9aabad953776c2d8b4eb02859dda. The logic
was added for Debian but we no longer have Debian jobs.

Change-Id: I7633fbfbf3424f093dac5811e9c2fb8dcdf3167b
2022-02-05 23:38:32 +09:00
Takashi Kajinami
1668df9ec4 Remove usage of custom os_package_type fact
Currently we support usage of distro packages only, and this custom
fact can be simply replaced by the default fact.

Change-Id: I8cad680e0ec96388cf5fa0e34f50b2c4d5969523
2022-01-05 22:44:55 +09:00
Alfredo Moralejo
bb97772d80 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
2021-05-20 14:02:18 +02:00
Tobias Urdin
099722bca4 Remove beaker
Change-Id: Ie9efc39070db608185a358f817f1074fd4f5810f
2020-09-21 18:52:28 +00:00
Tobias Urdin
81687e2ead Convert all class usage to relative names
In Puppet 3 there was a need to use absolute
names to prevent issues. Since Puppet 4 everything
is absolute by default which makes this not needed.

We need to change this everywhere so that we can
revert the pin in [1] that now prevents us from
using the latest version of the puppet-lint check
puppet-lint-absolute_classname_check that properly
checks that we dont use absolute names.

[1] https://review.opendev.org/#/c/697742/

Change-Id: I78b74fbeb08be7234189e4d266412fb7fb7a73c0
2019-12-08 14:58:12 +01:00
Tobias Urdin
a696192bf2 Add Ubuntu 18.04 Bionic to CI
We now have support to Mimic and can select that version
and this patch fixes Puppet 5 for Bionic we can add it to CI.

When this is fixed the only thing left is to add beaker acceptance
testing for Bionic.

Bionic only has Puppet 5 and can currently only use Ceph Mimic.

Change-Id: I6f94e214a70f92278f1f3806471ef2f622a938c3
2018-07-18 16:25:12 +02:00
Alex Schultz
46b503f7b0 Make fix redis service setup Debian only
This is an improvemen tonI1b37524ff1071d87e8a7df2fa3bca66aed162d1b
so that it only disables the service management when debian is used.

Change-Id: Ib69317e48f4c8b9e2eb69bcb31c8245db7b286ed
2018-06-01 08:08:30 -06:00
Thomas Goirand
74022b48dd Debian: fix redis service setup
The redis-server appears as "masked" in the OpenStack CI, even though it
did not in my test VM. As a consequence, "systemctl enable redis-server"
fails, and consequently, the puppet run fails in OpenStack CI. The thing
is, there's no need to enable this service, as in all distros, it's
already enabled by default. Even in the OpenStack CI, the service appears
as enabled, but masked (which by the way, should never happen, as this
isn't a working systemd state).

This patch simply removes the enabling of the systemd service, so that
it also works in Debian in the CI.

Change-Id: I1b37524ff1071d87e8a7df2fa3bca66aed162d1b
2018-05-31 22:41:23 +02:00
Mehdi Abaakouk
de97ef305a gnocchi: use redis as coordination url
Currently gnocchi metricd is really slow making some tests timeout,
because the tooz backend is mysql.

And the futur autoscaling will reach the max connections of mysql
by creating many tooz locks.

This change switches to redis, this is one of the recommended backend to
use (mysql is not).

Change-Id: Iae81848e883f74b7f8f8f4cad58c2168e01b7321
2017-05-04 11:53:03 +02:00