This formula sets up the repo for GitLab-CI Runners, installs a runner of your choice and configures it.
Optionally, afterwards, it can register it as well.
The init state installs the repo and the runner as both are required for this formula to make sense.
Setup APT repo for the current os_family + oscodename. Not RPM compatible at this time.
Installs the latest gitlab-runner package
Registers and unregisters runners according to the pillar data.
Starts and enables the gitlab-runner service.
If you have a GitLab setup, you probably need runners. This formula does the basic setup, install and configuration of the runner. A basic configuration for a single runner might be:
gitlab-ci-runner:
multirunners:
runner-1:
url: 'https://gitlab.domain.com/'
token: ercasdxBxasdhasdNbbb
executor: 'shell'
register: True
Setting resiter to True registers the runner, setting it to False gracefully de-registers them.
Currently, no additional parameters are supported, but they are easy to implement.