Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gitlab-runner-do-monitor
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ansible
gitlab-runner-do-monitor
Commits
8719fb98
Commit
8719fb98
authored
6 years ago
by
Erick Hitter
Browse files
Options
Downloads
Patches
Plain Diff
Everything for initial release but logrotate
parent
73300195
No related branches found
No related tags found
1 merge request
!2
Initial release
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
defaults/main.yml
+9
-1
9 additions, 1 deletion
defaults/main.yml
tasks/main.yml
+24
-1
24 additions, 1 deletion
tasks/main.yml
templates/config.j2
+6
-0
6 additions, 0 deletions
templates/config.j2
with
39 additions
and
2 deletions
defaults/main.yml
+
9
−
1
View file @
8719fb98
---
# 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
This diff is collapsed.
Click to expand it.
tasks/main.yml
+
24
−
1
View file @
8719fb98
---
# 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
This diff is collapsed.
Click to expand it.
templates/config.j2
0 → 100644
+
6
−
0
View file @
8719fb98
{
"log-dest": "{{ glrdomon_log_dest }}",
"api-key": "{{ glrdomon_api_key }}",
"threshold": {{ glrdomon_threshold }},
"delete-stale": {{ glrdomon_delete_stale|lower }}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment