From ecc63a0a28c362ddf4797d3be27a1660c1fa0d94 Mon Sep 17 00:00:00 2001 From: Rafael Chicoli Date: Tue, 26 Jan 2016 19:26:29 +0100 Subject: fix all puppet-lint error messages --- manifests/runner.pp | 73 +++++++++++++++++++++++++++++++++++------------------ 1 file changed, 49 insertions(+), 24 deletions(-) (limited to 'manifests/runner.pp') diff --git a/manifests/runner.pp b/manifests/runner.pp index f14cd06..2af8271 100644 --- a/manifests/runner.pp +++ b/manifests/runner.pp @@ -2,28 +2,53 @@ # # Class for creating runners in multi-runner's config file. # -# [*url*] - CI URL -# Defaults to http://gitlab.example.com -# [*token*] - runner token -# Defaults to 'XXXX' -# [*limit*] - limit how many jobs can be handled concurrently by this token. 0 simply means don't limit -# Defaults to undef -# [*shell*] - the name of shell to generate the script (default value is platform dependent) (bash, cmd, powershell) -# Defaults to undef -# [*executor*] - select how a project should be built (shell, docker, docker-ssh, ssh, parallels) -# Defaults to shell -# [*builds_dir*] - directory where builds will be stored in context of selected executor (Locally, Docker, SSH) -# Defaults to undef -# [*environment*] - append or overwrite environment variables -# Defaults to undef -# [*disable_verbose*] - don't print run commands -# Defaults to undef -# [*output_limit*] - set maximum build log size in kilobytes, by default set to 4096 (4MB) -# Defaults to undef -# [*docker_params*] - Docker params (image, allowed_images, allowed_services, volumes, ...). Need executor_docker to true. -# Defaults to undef +# [*url*] +# CI URL +# Defaults to http://gitlab.example.com +# [*token*] +# runner token +# Defaults to 'XXXX' +# +# [*limit*] +# limit how many jobs can be handled concurrently by this token. +# 0 simply means don't limit +# Defaults to undef +# +# [*shell*] +# the name of shell to generate the script +# (default value is platform dependent) (bash, cmd, powershell) +# Defaults to undef +# +# [*executor*] +# select how a project should be built +# (shell, docker, docker-ssh, ssh, parallels) +# Defaults to shell +# +# [*builds_dir*] +# directory where builds will be stored in context of selected executor +# (Locally, Docker, SSH) +# Defaults to undef +# +# [*environment*] +# append or overwrite environment variables +# Defaults to undef +# +# [*disable_verbose*] +# don't print run commands +# Defaults to undef +# +# [*output_limit*] +# set maximum build log size in kilobytes, by default set to 4096 (4MB) +# Defaults to undef +# +# [*docker_params*] +# Docker params (image, allowed_images, allowed_services, volumes, ...). +# Need executor_docker to true. +# Defaults to undef +# # [*config_file*] - Path for Gitlab Multi Runner config file -# Default value in params. +# Default value in params. +# define gitlab_ci_multi_runner::runner ( $url = 'http://gitlab.example.com', $token = 'XXXX', @@ -39,9 +64,9 @@ define gitlab_ci_multi_runner::runner ( $config_file = $gitlab_ci_multi_runner::params::config_file, ){ - concat::fragment { "${name}_$::gitlab_ci_multi_runner::config_file": - target => $::gitlab_ci_multi_runner::config_file, + concat::fragment { "${name}_${gitlab_ci_multi_runner::config_file}": + target => $gitlab_ci_multi_runner::config_file, content => template('gitlab_ci_multi_runner/fragment_runner_config.toml.erb'), } -} \ No newline at end of file +} -- cgit v1.2.3