Puppet Class: artifactory::repo::apt

Defined in:
manifests/repo/apt.pp

Summary

Setup APT repository on Debian-based distributions

Overview



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'manifests/repo/apt.pp', line 3

class artifactory::repo::apt () {
  assert_private()

  include apt

  if $artifactory::manage_repo {
    case $artifactory::edition {
      'enterprise', 'pro' : {
        $_url = $artifactory::apt_baseurl_pro
      }
      default : {
        $_url = $artifactory::apt_baseurl
      }
    }

    apt::source { 'artifactory':
      location => $_url,
      release  => $facts['os']['distro']['codename'],
      repos    => $artifactory::apt_repos,
      include  => {
        'src' => false,
      },
      key      => {
        'id'     => $artifactory::apt_key_id,
        'source' => $artifactory::apt_key_source,
      },
    }
  }
}