Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,13 @@ gitlab_runner__concurrent: '{{ ansible_processor_vcpus
(ansible_local.docker.installed|d()) | bool)
else "1" }}'

# ]]]
# .. envvar:: gitlab_runner__metrics [[[
#
# Activate Gitlab metrics server, .
gitlab_runner__metrics_bind: '0.0.0.0:9252'
gitlab_runner__metrics: False

# ]]]
# .. envvar:: gitlab_runner__domain [[[
#
Expand Down
3 changes: 3 additions & 0 deletions templates/etc/gitlab-runner/config.toml.j2
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# {{ ansible_managed }}

concurrent = {{ gitlab_runner__concurrent }}
{% if gitlab_runner__metrics | d() | bool %}
metrics_server = {{ gitlab_runner__metrics_bind }}
{% endif %}

{% set gitlab_runner__tpl_instances = [] %}
{% set gitlab_runner__tpl_instance_tokens = [] %}
Expand Down