Skip to content

Commit

Permalink
Change variable to match convention; Add to README
Browse files Browse the repository at this point in the history
  • Loading branch information
heytrav committed May 9, 2019
1 parent 92864f0 commit 75d6d38
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ The GitLab registration token. If this is specified, a runner will be registered
The GitLab coordinator URL.
Defaults to `https://gitlab.com/ci`.

`gitlab_runner_sentry_dsn`
Enable tracking of all system level errors to Sentry

`gitlab_runner_runners`
A list of gitlab runners to register & configure. Defaults to a single shell executor. See the [`defaults/main.yml`](https://github.com/riemers/ansible-gitlab-runner/blob/master/defaults/main.yml) file listing all possible options which you can be passed to a runner registration command.

Expand Down
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ gitlab_runner_coordinator_url: 'https://gitlab.com/ci'
# GitLab registration token
gitlab_runner_registration_token: ''

gitlab_runner_sentry_dsn: ''

# A list of runners to register and configure
gitlab_runner_runners:
# The identifier of the runner.
Expand Down
4 changes: 2 additions & 2 deletions tasks/global-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
lineinfile:
dest: /etc/gitlab-runner/config.toml
regexp: '^sentry_dsn ='
line: 'sentry_dsn = "{{ sentry_dsn }}"'
line: 'sentry_dsn = "{{ gitlab_runner_sentry_dsn }}"'
insertafter: '\s*concurrent.*'
state: present
when: sentry_dsn is defined
when: gitlab_runner_sentry_dsn != ""
notify: restart_gitlab_runner
-

0 comments on commit 75d6d38

Please sign in to comment.