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:
parent
15a5b581f1
commit
103e9fe147
|
@ -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 }}"
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
[Service]
|
||||||
|
Restart=always
|
||||||
|
RestartSec=2
|
||||||
|
StartLimitBurst=30
|
||||||
|
StartLimitInterval=60
|
Loading…
Reference in New Issue