Skip to content
Snippets Groups Projects
Commit 328f2c49 authored by Jupiter Hu's avatar Jupiter Hu
Browse files

move slurm db log to slurmdb-config

parent f6b9030e
No related branches found
No related tags found
No related merge requests found
......@@ -36,11 +36,3 @@
- name: add slurm log rotate config
template: src=slurmlog.j2 dest=/etc/logrotate.d/slurm mode=644
sudo: true
- name: add slurm db log rotate config
template: src=slurmdblog.j2 dest=/etc/logrotate.d/slurmdb mode=644
sudo: true
delegate_to: "{{ slurmctrl }}"
run_once: true
{{ slurmdbdlog.log }}
{% endif %}
{
compress
missingok
nocopytruncate
nocreate
nodelaycompress
nomail
notifempty
noolddir
rotate 5
sharedscripts
size=5M
create 640 slurm root
{% if ansible_os_family == 'RedHat' and ansible_distribution_version >= '7' %}
postrotate
{{ slurm_dir }}/sbin/slurmdbd flushlogs 1>/dev/null || true
{% else %}
postrotate /etc/init.d/slurmdbd reconfig
{% endif %}
endscript
}
......@@ -32,3 +32,7 @@
sudo: true
when: slurm_dir is not defined
- name: add slurm db log rotate config
template: src=slurmdblog.j2 dest=/etc/logrotate.d/slurmdb mode=644
sudo: true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment