Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core dump related updates #609

Merged
merged 3 commits into from
Nov 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions roles/manage_operating_system/tasks/enable_core_dump.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
---
# This and reloading sysctl can be removed when tpaexec doesn't force any
# kernel.core_pattern to be set.
- name: Remove kernel.core_pattern from tpaexec installed sysctl file
ansible.builtin.lineinfile:
path: /etc/sysctl.conf
search_string: kernel.core_pattern=core.%e.%p.%t
state: absent
become: true

- name: Reload sysctl settings
ansible.builtin.command:
cmd: sysctl -p --system
become: true

- name: Enable unlimited core size for all users
community.general.pam_limits:
domain: "*"
Expand All @@ -13,3 +27,10 @@
state: present
when: ansible_os_family == 'RedHat'
become: true

- name: Install systemd-coredump
ansible.builtin.package:
name: systemd-coredump
state: present
when: ansible_os_family == 'Debian'
become: true
7 changes: 7 additions & 0 deletions roles/setup_dbt2/tasks/validate_setup_dbt2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
- name: Set dbt2_db_pkg_list
ansible.builtin.set_fact:
dbt2_db_pkg_list: ['perf', 'rsync', 'tmux', 'fuse', 'fuse-libs', 'sysstat', 'dejavu-fonts-common', 'fontconfig']
when: ansible_os_family == 'RedHat'

# validate dbt2 db packages installation
- name: Set dbt2_db_pkg_list
ansible.builtin.set_fact:
dbt2_db_pkg_list: ['linux-perf', 'rsync', 'tmux', 'fuse', 'libfuse2', 'sysstat', 'fonts-dejavu', 'fontconfig']
when: ansible_os_family == 'Debian'

- name: Gather the package facts
ansible.builtin.package_facts:
Expand Down
Loading