diff --git a/roles/pvc/tasks/ceph/main.yml b/roles/pvc/tasks/ceph/main.yml index db75edd..21b0b93 100644 --- a/roles/pvc/tasks/ceph/main.yml +++ b/roles/pvc/tasks/ceph/main.yml @@ -128,6 +128,21 @@ src: /etc/ceph/ceph.osd.bootstrap.keyring 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 service: name: "{{ item }}" diff --git a/roles/pvc/templates/ceph/restart.conf.j2 b/roles/pvc/templates/ceph/restart.conf.j2 new file mode 100644 index 0000000..3665acc --- /dev/null +++ b/roles/pvc/templates/ceph/restart.conf.j2 @@ -0,0 +1,5 @@ +[Service] +Restart=always +RestartSec=2 +StartLimitBurst=30 +StartLimitInterval=60