update toml - verify TLS & more concurrent

This commit is contained in:
Ludovic Cartier 2023-09-29 18:33:16 +02:00
parent a1a8c62be7
commit 4f387653fb

View File

@ -43,10 +43,12 @@
dest: '/var/lib/docker/volumes/gitlab-runner__etc_gitlab-runner/_data/config.toml' dest: '/var/lib/docker/volumes/gitlab-runner__etc_gitlab-runner/_data/config.toml'
mode: '0600' mode: '0600'
content: | content: |
concurrent = 1 concurrent = "{{ (ansible_processor_cores * ansible_processor_count)|int }}"
check_interval = 0 check_interval = 0
[session_server] [session_server]
session_timeout = 1800 session_timeout = 1800
[[runners]] [[runners]]
name = "{{ inventory_hostname }}" name = "{{ inventory_hostname }}"
url = "https://{{ gitlab_domain }}/" url = "https://{{ gitlab_domain }}/"
@ -55,13 +57,13 @@
[runners.docker] [runners.docker]
host = "tcp://docker:2376/" host = "tcp://docker:2376/"
tls_cert_path = "/certs/client" tls_cert_path = "/certs/client"
tls_verify = false tls_verify = true
image = "debian:stable-slim" image = "debian:stable-slim"
privileged = false privileged = true
disable_entrypoint_overwrite = false disable_entrypoint_overwrite = false
oom_kill_disable = false oom_kill_disable = false
disable_cache = false disable_cache = false
volumes = ["/var/run/docker.sock:/var/run/docker.sock:rw", "/cache", "/builds:/builds"] volumes = ["/certs/client", "/var/run/docker.sock:/var/run/docker.sock:rw", "/cache", "/builds:/builds"]
shm_size = 0 shm_size = 0
pull_policy = ["always", "if-not-present"] pull_policy = ["always", "if-not-present"]
notify: 'gitlab-runner-restart' notify: 'gitlab-runner-restart'