add runner_token secret

This commit is contained in:
marlon 2024-10-02 16:51:07 -04:00
parent 9a32be5ebe
commit 24ae89f5c4
3 changed files with 7 additions and 1 deletions

View File

@ -12,6 +12,7 @@ ENTRYPOINT_VERSION=v1
GITLAB_ROOT_EMAIL="gitlab_admin@example.com"
SECRET_INITIAL_ROOT_PASSWORD_VERSION=v1
SECRET_RUNNER_TOKEN_VERSION=v1
SSO=false
## Authentik Configuration

View File

@ -34,9 +34,11 @@ services:
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
- "backupbot.backup=true"
- "backupbot.backup.path=/etc/gitlab/,/var/log/gitlab/,/var/opt/gitlab/"
- "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-180}"
- "coop-cloud.${STACK_NAME}.version=1.0.0+15.8.0"
secrets:
- initial_root_password
- runner_token
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
interval: 30s
@ -48,6 +50,9 @@ secrets:
initial_root_password:
external: true
name: ${STACK_NAME}_initial_root_password_${SECRET_INITIAL_ROOT_PASSWORD_VERSION}
runner_token:
external: true
name: ${STACK_NAME}_runner_token_${SECRET_RUNNER_TOKEN_VERSION}
volumes:
gitlabconfig:

View File

@ -713,7 +713,7 @@ gitlab_rails['omniauth_providers'] = [
####! **Only applicable on initial setup, changing these settings after database
####! is created and seeded won't yield any change.**
gitlab_rails['initial_root_password'] = "{{ secret "initial_root_password" }}"
# gitlab_rails['initial_shared_runners_registration_token'] = "token"
gitlab_rails['initial_shared_runners_registration_token'] = "{{ secret "runner_token" }}"
#### Toggle if root password should be printed to STDOUT during initialization
# gitlab_rails['display_initial_root_password'] = false