- Overview
- Usage - Configuration options and additional functionality
- Limitations - OS compatibility, etc.
This module installs and configures the Gitlab CI Runner Package or nodes.
Here is an example how to configure Gitlab CI runners using Hiera:
To use the Gitlab CI runners it is required to have the puppetlabs/docker module.
$manage_docker
can be set to false if docker is managed externally.
gitlab_ci_runner::concurrent: 4
gitlab_ci_runner::metrics_server: "localhost:8888"
gitlab_ci_runner::manage_docker: true
gitlab_ci_runner::config_path: "etc/gitlab-runner/config.toml"
gitlab_ci_runner::runners:
test_runner1:{}
test_runner2:{}
test_runner3:
url: "https://git.alternative.org/ci"
registration-token: "abcdef1234567890"
tags-list: "aws,docker,example-tag"
gitlab_ci_runner::runner_defaults:
url: "https://git.example.com/ci"
registration-token: "1234567890abcdef"
executor: "docker"
docker-image: "ubuntu:trusty"
builds_dir: "/tmp"
cache_dir: "/tmp"
To unregister a specific runner you may use ensure
param:
gitlab_ci_runner::runners:
test_runner1:{}
test_runner2:{}
test_runner3:
url: "https://git.alternative.org/ci"
registration-token: "abcdef1234567890"
ensure: absent
The Gitlab CI runner installation is at the moment only tested on Ubuntu 14.04 and Debian 9.
A runner configuration is currently only applied if the specific runner does not exist in the config file.