summaryrefslogtreecommitdiff
path: root/manifests/repo.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/repo.pp')
-rw-r--r--manifests/repo.pp30
1 files changed, 28 insertions, 2 deletions
diff --git a/manifests/repo.pp b/manifests/repo.pp
index 2263170..55e73df 100644
--- a/manifests/repo.pp
+++ b/manifests/repo.pp
@@ -5,7 +5,33 @@
class gitlab_ci_multi_runner::repo {
case $::osfamily {
'Debian': {
- class { 'gitlab_ci_multi_runner::repo::apt': }
+
+ include apt
+ # apt-transport-https is required by the apt to get the sources
+ ensure_packages('apt-transport-https')
+
+ Package['apt-transport-https'] ->
+ Apt::Source['gitlab-ci-multi-runner'] ->
+ Package['gitlab-ci-multi-runner']
+
+ 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,
+ },
+ }
+ }
+ default: {
+ fail("${::operatingsystem} not supported")
}
}
-} \ No newline at end of file
+
+}