diff options
author | Jeoffrey B <jeoffrey54@gmail.com> | 2016-01-28 10:45:14 +0100 |
---|---|---|
committer | Jeoffrey B <jeoffrey54@gmail.com> | 2016-01-28 10:45:14 +0100 |
commit | 2b5f5f257d950091b5a5a515daab7addea39025b (patch) | |
tree | e81ff8445b167c62c36e217c857d518a0be6fc98 /manifests/repo.pp | |
parent | a89c460e0f630d778513a3b07a33f150b79d2aae (diff) | |
parent | c45d8e2f43919785134f02ca34c98ca943c82166 (diff) |
Merge pull request #1 from rchicoli/fix-travis-ci
fix all puppet-lint error messages
Diffstat (limited to 'manifests/repo.pp')
-rw-r--r-- | manifests/repo.pp | 30 |
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 + +} |