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
This commit is contained in:
Dan Prince 2019-02-18 15:38:01 -05:00
parent e506999744
commit 276743b5fe

View File

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