Redis: fix podman start on reboot

This patch updates the tripleo_redis.service systemd unit
so that it recreates the /var/run/redis directory and sets
the SELinux context accordingly after a reboot. Previously
it would fail on reboot as these files are created via Ansible
only during deployment.

Change-Id: I4df04007098b610936d172ecfc5a92dcb1fb3fdc
Closes-bug: #1816444
Dan Prince 2019-02-18 15:38:01 -05:00
parent e506999744
commit 276743b5fe
1 changed files with 3 additions and 0 deletions

View File

@ -117,6 +117,9 @@ outputs:
net: host
privileged: false
restart: always
RuntimeDirectory: redis
ExecStartPre: /bin/chcon -t svirt_sandbox_file_t /var/run/redis
test: /openstack/healthcheck