puppet: Create directory for redis PID file.

The Redis configuration, and the systemd file for it, assumes there
will be a pid file written to `/var/run/redis/redis.pid`, but
`/var/run/redis` is not created during installation.

Create `/run/redis`; as `/var/run` is a symlink to `/run` on systemd
systems, this is equivalent to `/var/run/redis`.
This commit is contained in:
Alex Vandiver 2021-12-11 02:58:04 +00:00 committed by Tim Abbott
parent a6c2079502
commit 850bc4cc81

View File

@ -60,9 +60,19 @@ class zulip::profile::redis {
content => template('zulip/zulip-redis.template.erb'),
}
file { '/run/redis':
ensure => 'directory',
owner => 'redis',
group => 'redis',
mode => '0755',
require => Package[$redis],
}
service { $redis:
ensure => running,
subscribe => [File[$zulip_redisconf],
Exec['redis']],
require => File['/run/redis'],
subscribe => [
File[$zulip_redisconf],
Exec['redis'],
],
}
}