Skip to content
Snippets Groups Projects
Commit 3440a724 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

Merge branch 'simple-task/7546-icinga-check-für-ablaufende-gitlab-tokens' into 'master'

update docs

See merge request !283
parents 7ba45c35 cc9ab760
No related branches found
No related tags found
1 merge request!283update docs
...@@ -52,6 +52,10 @@ GITLAB_TOKEN='glpat-1234567890' ...@@ -52,6 +52,10 @@ GITLAB_TOKEN='glpat-1234567890'
# REST_CLIENT='/some/where/rest-api-client.sh' # REST_CLIENT='/some/where/rest-api-client.sh'
``` ```
Hint:
If you need to skip the token check but the check was rolled out on a server then you can set `GITLAB_TOKEN=SKIP`. You can leave the other variables empty.
## Syntax ## Syntax
```txt ```txt
...@@ -59,7 +63,7 @@ GITLAB_TOKEN='glpat-1234567890' ...@@ -59,7 +63,7 @@ GITLAB_TOKEN='glpat-1234567890'
______________________________________________________________________ ______________________________________________________________________
CHECK_GITLAB_TOKENS CHECK_GITLAB_TOKENS
v1.0 v1.1
(c) Institute for Medical Education - University of Bern (c) Institute for Medical Education - University of Bern
Licence: GNU GPL 3 Licence: GNU GPL 3
...@@ -89,8 +93,16 @@ OPTIONS: ...@@ -89,8 +93,16 @@ OPTIONS:
-c VALUE critical level (default: 10) -c VALUE critical level (default: 10)
-g FILE path to GITLAB_CONFIG; default: /etc/icinga2/gitlab.cfg -g FILE path to GITLAB_CONFIG; default: /etc/icinga2/gitlab.cfg
-r FILE path to REST client; default: ./../inc/rest-api-client.sh There you can set/ override:
It overrides the variable REST_CLIENT.
GITLAB_API='https://gitlab.example.com/api/v4'
GITLAB_CONFIG=<TOKEN>
REST_CLIENT="/opt/rest-api-client/rest-api-client.sh"
-r FILE path to REST api client
default: /opt/rest-api-client/rest-api-client.sh
The parameter overrides the variable REST_CLIENT.
-s DAYS Number of days for max age of token; default: 395 -s DAYS Number of days for max age of token; default: 395
PARAMETERS: PARAMETERS:
...@@ -110,7 +122,7 @@ EXAMPLES: ...@@ -110,7 +122,7 @@ EXAMPLES:
``` ```
## Example ## Output
The execution of `check_gitlab_tokens` returns The execution of `check_gitlab_tokens` returns
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment