Passwords for Basic Auth of usersfile of Traefik will auto generate bcrypt, Runner metrics auth password not supported bcrypt natively and used as PlainText.
Stages
- Install Docker
- Stop containers if exist
- Creating directories and copy docker compose as template ( It depends on traefik is True or False in inventory file. )
- Docker Login ( It depends to credentials is available in inventory file. )
- Create Docker network
- Deploy gitlab runner
- Deploy traefik as reverse proxy
- Config gitlab runner and register by default variable or by inventory variables for each host.
- Other gitlab runner configurations
- Config intervals of runner and prometheus monitoring of gitlab runner and expose on 9252
Gitlab runner exposed with traefik label configurations.
Monitoring
Add this config to your central monitoring system prometheus :
global:
scrape_interval: 15s
scrape_configs:
- job_name: 'gitlab-runner'
static_configs:
- targets: ['runner.example.com:9252']
All notable changes to this project will be documented in this file.
Fix bashscript inventory generator template problem when using traefik : True
Fix playbook file variable in bashscript.