Add restart overrides for ceph-mgr

Needed because ceph-mgr seems to crash frequently under Debian 12 when
adding or removing OSDs. The default settings do not restart it
properly, so this override does.
This commit is contained in:
Joshua Boniface 2023-11-03 14:25:31 -04:00
parent 15a5b581f1
commit 103e9fe147
2 changed files with 20 additions and 0 deletions

View File

@ -128,6 +128,21 @@
src: /etc/ceph/ceph.osd.bootstrap.keyring src: /etc/ceph/ceph.osd.bootstrap.keyring
state: link state: link
- name: create mgr override systemd directory
file:
dest: /etc/systemd/system/ceph-mgr@.service.d
state: directory
- name: install mgr restart override systemd settings
template:
src: ceph/restart.conf.j2
dest: /etc/systemd/system/ceph-mgr@.service.d/restart.conf
register: systemd
- name: systemctl daemon-reload when files changed
command: systemctl daemon-reload
when: systemd.changed
- name: start but disable daemons - name: start but disable daemons
service: service:
name: "{{ item }}" name: "{{ item }}"

View File

@ -0,0 +1,5 @@
[Service]
Restart=always
RestartSec=2
StartLimitBurst=30
StartLimitInterval=60