From 850bc4cc81bd7b9587865cef9ac8ea9190cc1ea3 Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Sat, 11 Dec 2021 02:58:04 +0000 Subject: [PATCH] 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`. --- puppet/zulip/manifests/profile/redis.pp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/puppet/zulip/manifests/profile/redis.pp b/puppet/zulip/manifests/profile/redis.pp index 0ed67e4800..083bfb2305 100644 --- a/puppet/zulip/manifests/profile/redis.pp +++ b/puppet/zulip/manifests/profile/redis.pp @@ -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'], + ], } }