Skip to content

Commit

Permalink
vars: unify and move gitlab_runner_timeout_stop_seconds to defaults
Browse files Browse the repository at this point in the history
There's not really a reason to have different values for each os. This
unifies the default to be 7200 and allows overriding it (because it's
now just a default var). I use the override for hosts with long running
ci jobs.

Signed-off-by: Steffen Dirkwinkel <s.dirkwinkel@beckhoff.com>
  • Loading branch information
sdirkwinkel committed Apr 10, 2024
1 parent 102cade commit c343736
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ gitlab_runner_container_network: default
# default state to restart
gitlab_runner_restart_state: restarted

# systemd service kill timeout (time to wait for running jobs on stop)
gitlab_runner_timeout_stop_seconds: 7200

# default value for log_format
# gitlab_runner_log_format: runner

Expand Down
1 change: 0 additions & 1 deletion vars/Archlinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ gitlab_runner_executable: /usr/bin/{{ gitlab_runner_package_name }}
gitlab_runner_runtime_owner: gitlab-runner
gitlab_runner_runtime_group: gitlab-runner
gitlab_runner_restart_state: reloaded
gitlab_runner_timeout_stop_seconds: 720
1 change: 0 additions & 1 deletion vars/Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ gitlab_runner_executable: /usr/bin/{{ gitlab_runner_package_name }}
gitlab_runner_runtime_owner: gitlab-runner
gitlab_runner_runtime_group: gitlab-runner
gitlab_runner_restart_state: reloaded
gitlab_runner_timeout_stop_seconds: 720
1 change: 0 additions & 1 deletion vars/RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ gitlab_runner_executable: /usr/bin/{{ gitlab_runner_package_name }}

gitlab_runner_runtime_owner: gitlab-runner
gitlab_runner_runtime_group: gitlab-runner
gitlab_runner_timeout_stop_seconds: 7200

0 comments on commit c343736

Please sign in to comment.