Classes
gitlab_ci_runner: This module installs and configures Gitlab CI Runners.
Defined types
gitlab_ci_runner::runner: This module installs and configures Gitlab CI Runners.
This module installs and configures Gitlab CI Runners.
class { 'gitlab_ci_runner':
runners => {
example_runner => {
'registration-token' => 'gitlab-token',
'url' => 'https://gitlab.com',
'tag-list' => 'docker,aws',
},
},
}The following parameters are available in the gitlab_ci_runner class.
Data type: Hash
Hashkeys are used as $title in runners.pp. The subkeys have to be named as the parameter names from ´gitlab-runner register´ command cause they're later joined to one entire string using 2 hyphen to look like shell command parameters. See ´https://docs.gitlab.com/runner/register/#one-line-registration-command´ for details.
Data type: Hash
A hash with defaults which will be later merged with $runners.
Data type: String
The name of the 'xz' package. Needed for local docker installations.
Data type: Optional[Integer]
Limits how many jobs globally can be run concurrently. The most upper limit of jobs using all defined runners. 0 does not mean unlimited!
Default value: undef
Data type: Optional[String]
Absolute path to a directory where builds will be stored in context of selected executor (Locally, Docker, SSH).
Default value: undef
Data type: Optional[String]
Absolute path to a directory where build caches will be stored in context of selected executor (locally, Docker, SSH). If the docker executor is used, this directory needs to be included in its volumes parameter.
Default value: undef
Data type: Optional[Pattern[/.*:.+/]]
(Deprecated) [host]: to enable metrics server as described in https://docs.gitlab.com/runner/monitoring/README.html#configuration-of-the-metrics-http-server.
Default value: undef
Data type: Optional[Pattern[/.*:.+/]]
Address (:) on which the Prometheus metrics HTTP server should be listening.
Default value: undef
Data type: Optional[String]
Enable tracking of all system level errors to sentry.
Default value: undef
Data type: Boolean
If docker should be installs (uses the puppetlabs-docker).
Default value: true
Data type: Boolean
If the repository should be managed.
Default value: true
Data type: String
The package 'ensure' state.
Default value: installed
Data type: String
The name of the package.
Default value: 'gitlab-runner'
Data type: Stdlib::HTTPUrl
The base repository url.
Default value: 'https://packages.gitlab.com'
Data type: Stdlib::Fqdn
The keyserver which should be used to get the repository key.
Default value: 'keys.gnupg.net'
Data type: String
The path to the config file of Gitlab runner.
Default value: '/etc/gitlab-runner/config.toml'
This module installs and configures Gitlab CI Runners.
The following parameters are available in the gitlab_ci_runner::runner defined type.
Data type: String
The name of the Gitlab runner binary.
Data type: Hash
Hash with configuration for runners.
Data type: Hash
Hash with default configration for runners. This will be merged with the runners_hash config.
Default value: {}