From 86c43f4f127af17861ea874af0a5771cdbedcd44 Mon Sep 17 00:00:00 2001 From: Jeoffrey Bauvin Date: Mon, 26 Oct 2015 16:03:29 +0100 Subject: Add repo --- manifests/params.pp | 14 +++++++++++--- manifests/repo.pp | 11 +++++++++++ manifests/repo/apt.pp | 22 ++++++++++++++++++++++ 3 files changed, 44 insertions(+), 3 deletions(-) create mode 100644 manifests/repo.pp create mode 100644 manifests/repo/apt.pp diff --git a/manifests/params.pp b/manifests/params.pp index 775c3ef..4f25f62 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -4,12 +4,20 @@ # It sets variables according to platform # class gitlab_ci_multi_runner::params { + + $config_file = '/etc/gitlab-runner/config.toml' + $manage_package_repo = undef + $user = 'gitlab-runner' + $group = 'gitlab-runner' + + $concurrent = 1 + case $::osfamily { 'Debian': { - $package_name = 'gitlab_ci_multi_runner' - $service_name = 'gitlab_ci_multi_runner' + $package_name = 'gitlab-ci-multi-runner' + $service_name = 'gitlab-runner' } - 'RedHat', 'Amazon': { + 'RedHat': { $package_name = 'gitlab_ci_multi_runner' $service_name = 'gitlab_ci_multi_runner' } diff --git a/manifests/repo.pp b/manifests/repo.pp new file mode 100644 index 0000000..2263170 --- /dev/null +++ b/manifests/repo.pp @@ -0,0 +1,11 @@ +# == Class gitlab_ci_multi_runner::repo +# +# This class is private, do not use directly +# +class gitlab_ci_multi_runner::repo { + case $::osfamily { + 'Debian': { + class { 'gitlab_ci_multi_runner::repo::apt': } + } + } +} \ No newline at end of file diff --git a/manifests/repo/apt.pp b/manifests/repo/apt.pp new file mode 100644 index 0000000..123d06d --- /dev/null +++ b/manifests/repo/apt.pp @@ -0,0 +1,22 @@ +# == Class gitlab_ci_multi_runner::repo::apt +# +# This class is private, do not use directly +# +class gitlab_ci_multi_runner::repo::apt { + include apt + + apt::source { 'gitlab-ci-multi-runner': + comment => 'This is an officiel apt repo for Gitlab Ci Multi Runner', + location => 'https://packages.gitlab.com/runner/gitlab-ci-multi-runner/debian/', + release => $::lsbdistcodename, + repos => 'main', + key => { + 'id' => '1A4C919DB987D435939638B914219A96E15E78F4', + 'source' => 'https://packages.gitlab.com/gpg.key', + }, + include => { + 'src' => true, + 'deb' => true, + }, + } +} \ No newline at end of file -- cgit v1.2.3