ocp-power-automation/ocp4-playbooks

Key systemd services don't auto-restart on bastion

bpradipt opened this issue · 4 comments

Haproxy , named, squid service in bastion is not configured with Restart=always or Restart=on-failure. Consequently any crash of the service will not restart it automatically.

May be a contribution to the helpernode playbook?

Squid is in house so this issue is still valid for such services.

Either contribution to helpernode, or we can add a role in our playbook to create systemd dropin to add the configuration. Something like this

cat <<EOF | sudo tee /etc/systemd/system/{haproxy, squid, named}.service.d/restart.conf
[Service]
Restart=always
EOF

Closed via #93