Commit fd770c99 authored by Erick Hitter's avatar Erick Hitter

Merge branch 'add/initial-release' into 'master'

Initial release

Closes #1

See merge request !2
parents 73300195 0ce5f063
Pipeline #186 passed with stage
in 3 minutes and 24 seconds
---
# 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: Set configuration
template:
src: templates/config.j2
dest: "{{ glrdomon_config_dest }}"
force: yes
owner: root
group: root
mode: 0400
- name: Schedule cron job
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
- name: Configure logrotate
template:
src: templates/logrotate.j2
dest: /etc/logrotate.d/gitlab-runner-do-monitor
force: yes
owner: root
group: root
mode: 0644
{
"log-dest": "{{ glrdomon_log_dest }}",
"api-key": "{{ glrdomon_api_key }}",
"threshold": {{ glrdomon_threshold }},
"delete-stale": {{ glrdomon_delete_stale|lower }}
}
{{ glrdomon_log_dest }} {
daily
rotate 14
notifempty
missingok
compress
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment