diff --git a/deployment/database/redis-container-puppet.yaml b/deployment/database/redis-container-puppet.yaml index 7a9f4a0ee2..cd7be78209 100644 --- a/deployment/database/redis-container-puppet.yaml +++ b/deployment/database/redis-container-puppet.yaml @@ -222,6 +222,11 @@ outputs: - { 'path': /var/log/containers/redis, 'setype': svirt_sandbox_file_t } - { 'path': /var/run/redis, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/redis, 'setype': svirt_sandbox_file_t } + - name: ensure /var/run/redis is present upon reboot + copy: + dest: /etc/tmpfiles.d/var-run-redis.conf + content: | + d /var/run/redis 0755 root root - - - name: redis logs readme copy: dest: /var/log/redis/readme.txt diff --git a/deployment/database/redis-pacemaker-puppet.yaml b/deployment/database/redis-pacemaker-puppet.yaml index f92d908499..3a96d7a681 100644 --- a/deployment/database/redis-pacemaker-puppet.yaml +++ b/deployment/database/redis-pacemaker-puppet.yaml @@ -294,6 +294,11 @@ outputs: - { 'path': /var/log/containers/redis, 'setype': svirt_sandbox_file_t } - { 'path': /var/run/redis, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/redis, 'setype': svirt_sandbox_file_t } + - name: ensure /var/run/redis is present upon reboot + copy: + dest: /etc/tmpfiles.d/var-run-redis.conf + content: | + d /var/run/redis 0755 root root - - - name: redis logs readme copy: dest: /var/log/redis/readme.txt