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

Everything for initial release but logrotate

parent 73300195
No related branches found
No related tags found
1 merge request!2Initial release
---
# defaults file for gitlab-runner-do-monitor
\ No newline at end of file
glrdomon_binary_url: "https://git.ethitter.com/debian/gitlab-runner-do-monitor/uploads/120b75434ea47d89aa0fb50cdb2b49c4/gitlab-runner-do-monitor_linux_amd64"
glrdomon_binary_dest: /usr/local/bin/gitlab-runner-do-monitor
glrdomon_config_dest: /etc/gitlab-runner-do-monitor.json
gldrmon_cron_interval_min: "*/15"
glrdomon_api_key: false
glrdomon_log_dest: "os.Stdout"
glrdomon_threshold: 4000
glrdomon_delete_stale: true
---
# tasks file for gitlab-runner-do-monitor
\ No newline at end of file
- name: Download and install binary
get_url:
url: "{{ glrdomon_binary_url }}"
dest: "{{ glrdomon_binary_dest }}"
mode: 0755
force: yes
- name: Create config file
template:
src: templates/config.j2
dest: "{{ glrdomon_config_dest }}"
force: yes
owner: root
group: root
mode: 0400
- name:
cron:
name: gitlab-runner-do-monitor
minute: "{{ gldrmon_cron_interval_min }}"
job: "{{ glrdomon_binary_dest }} -config {{ glrdomon_config_dest }}"
state: present
cron_file: gitlab-runner-do-monitor
user: root
{
"log-dest": "{{ glrdomon_log_dest }}",
"api-key": "{{ glrdomon_api_key }}",
"threshold": {{ glrdomon_threshold }},
"delete-stale": {{ glrdomon_delete_stale|lower }}
}
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