Skip to content
Snippets Groups Projects
Commit 0ce5f063 authored by Erick Hitter's avatar Erick Hitter
Browse files

Add logrotate config

parent 8719fb98
No related branches found
No related tags found
1 merge request!2Initial release
Pipeline #182 passed
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
mode: 0755 mode: 0755
force: yes force: yes
- name: Create config file - name: Set configuration
template: template:
src: templates/config.j2 src: templates/config.j2
dest: "{{ glrdomon_config_dest }}" dest: "{{ glrdomon_config_dest }}"
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
group: root group: root
mode: 0400 mode: 0400
- name: - name: Schedule cron job
cron: cron:
name: gitlab-runner-do-monitor name: gitlab-runner-do-monitor
minute: "{{ gldrmon_cron_interval_min }}" minute: "{{ gldrmon_cron_interval_min }}"
...@@ -23,3 +23,12 @@ ...@@ -23,3 +23,12 @@
state: present state: present
cron_file: gitlab-runner-do-monitor cron_file: gitlab-runner-do-monitor
user: root user: root
- name: Configure logrotate
template:
src: templates/logrotate.j2
dest: /etc/logrotate.d/gitlab-runner-do-monitor
force: yes
owner: root
group: root
mode: 0644
{{ glrdomon_log_dest }} {
daily
rotate 14
notifempty
missingok
compress
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment