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/repo.pp | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) (limited to 'manifests/repo.pp') 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 + +} -- cgit v1.2.3