Skip to content
module to mange gitlab CI runners. (Will be) Extracted from https://github.com/voxpupuli/puppet-gitlab
Branch: master
Clone or download
Latest commit d4a001b Jul 22, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github modulesync 2.7.0 Apr 6, 2019
data Fix xz dependency on RedHat systems Apr 25, 2019
manifests Merge branch 'master' into add_custom_repo, resolve conflicts Jul 19, 2019
spec Merge branch 'master' into add_custom_repo, resolve conflicts Jul 19, 2019
.editorconfig modulesync 2.3.1 Dec 4, 2018
.fixtures.yml test against master branch of each dependency Oct 13, 2018
.gitignore modulesync setup Jul 21, 2018
.msync.yml modulesync 2.7.0 Apr 6, 2019
.overcommit.yml modulesync 2.0.0 Sep 5, 2018
.pmtignore modulesync 2.3.1 Dec 4, 2018
.rspec modulesync setup Jul 21, 2018
.rspec_parallel modulesync setup Jul 21, 2018
.rubocop.yml modulesync setup Jul 21, 2018
.sync.yml
.travis.yml modulesync 2.7.0 Apr 6, 2019
.yardopts modulesync setup Jul 21, 2018
CHANGELOG.md Release 1.0.0 Nov 21, 2018
Dockerfile modulesync 2.7.0 Apr 6, 2019
Gemfile modulesync 2.7.0 Apr 6, 2019
LICENSE add LICENSE file Aug 1, 2018
Makefile
README.md Merge branch 'master' into add_custom_repo, resolve conflicts Jul 19, 2019
Rakefile modulesync 2.7.0 Apr 6, 2019
hiera.yaml Fix xz dependency on RedHat systems Apr 25, 2019
metadata.json Add configurable Repo and service resource Jun 18, 2019

README.md

Gitlab-CI runner module for Puppet

Build Status Puppet Forge Puppet Forge - downloads Puppet Forge - endorsement Puppet Forge - scores

Table of Contents

  1. Overview
  2. Usage - Configuration options and additional functionality
  3. Limitations - OS compatibility, etc.

Overview

This module installs and configures the Gitlab CI Runner Package or nodes.

Usage

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::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"

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

Limitations

The Gitlab CI runner installation is at the moment only tested on Ubuntu 14.04 and Debian 9.

You can’t perform that action at this time.