Update to 2022-12-14 18:00

This commit is contained in:
Daniel Berteaud
2022-12-14 18:00:12 +01:00
parent 0ab511e3aa
commit 9c4336ba0a
6 changed files with 37 additions and 2 deletions

View File

@@ -10,6 +10,8 @@
[Service]
#User=linstor-controller
#Group=linstor-controller
# Empty the error database on startup, to prevent unbounded growth
ExecStartPre=/bin/rm -f /var/log/linstor-controller/error-report.mv.db
PrivateDevices=yes
ProtectSystem=full
ProtectHome=yes
@@ -38,9 +40,18 @@
when: linctl_ha
tags: drbd
- name: Install controller logs janitor
template: src=linstor-controller-logs-janitor.{{ item }}.j2 dest=/etc/systemd/system/linstor-controller-logs-janitor.{{ item }}
loop:
- service
- timer
notify: restart linstor-controller-logs-janitor
register: linctl_janitor_unit
tags: drbd
- name: Reload systemd
systemd: daemon_reload=True
when: linctl_unit.changed or (linctl_data_unit is defined and linctl_data_unit.changed)
when: linctl_unit.changed or (linctl_data_unit is defined and linctl_data_unit.changed) or linctl_janitor_unit.results | selectattr('changed','equalto',True) | list | length > 0
tags: drbd
- name: Install backup hooks

View File

@@ -6,6 +6,10 @@
register: linctl_started
tags: drbd
- name: Handle log janitor timer
systemd: name=linstor-controller-logs-janitor.timer state=started enabled=True
tags: drbd
- when: linctl_ha
block:
- name: Ensure the service is disabled and managed by drbd-reactor