Skip to content

Commit

Permalink
add check if abrt config files exists on HE deploy
Browse files Browse the repository at this point in the history
Our abrt configuration is not being used on lastest versions since we started
using 'systemd-coredump'.
beacuse of that we should Restore initial abrt config files only when
they exists (on older versions).
  • Loading branch information
hbraha committed Dec 2, 2021
1 parent 3cf7cb6 commit de2d0a1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changelogs/fragments/397-he_engine_abrt_configuration.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
minor_changes:
- hosted_engine_setup - configured abrt initial files only when needed (https://github.com/oVirt/ovirt-ansible-collection/pull/397).
6 changes: 6 additions & 0 deletions roles/hosted_engine_setup/tasks/initial_clean.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
args:
warn: false
environment: "{{ he_cmd_lang }}"
- name: Verify abrt-action-save-package-data file
stat:
path: /etc/abrt/abrt-action-save-package-data.conf
register: abrt_exists
- name: Restore initial abrt config files
copy:
remote_src: true
Expand All @@ -52,10 +56,12 @@
src: /usr/share/abrt/conf.d/plugins/vmcore.conf,
dest: /etc/abrt/plugins/vmcore.conf
}
when: abrt_exists.stat.exists
- name: Restart abrtd service
service:
name: abrtd
state: restarted
when: abrt_exists.stat.exists
- name: Drop libvirt sasl2 configuration by vdsm
command: >-
sed -i '/## start vdsm-4.[0-9]\+.[0-9]\+ configuration/,/## end vdsm configuration/d' /etc/sasl2/libvirt.conf
Expand Down

0 comments on commit de2d0a1

Please sign in to comment.