Puppet Class: apt::repo::dockerproject

Defined in:
manifests/repo/dockerproject.pp

Overview

Class: apt::repo::dockerproject

This class installs the Docker repo



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
# File 'manifests/repo/dockerproject.pp', line 5

class apt::repo::dockerproject {
  ensure_packages('apt-transport-https')
  case $::operatingsystem {
  'Debian': {
    apt::repository { 'docker':
      url        => 'https://apt.dockerproject.org/repo',
      distro     => "debian-${::lsbdistcodename}",
      repository => 'main',
      key        => '58118E89F3A912897C070ADBF76221572C52609D',
      key_url    => 'https://apt.dockerproject.org/gpg';
    }
  }
  'Ubuntu': {
    apt::repository { 'docker':
      url        => 'https://apt.dockerproject.org/repo',
      distro     => "ubuntu-${::lsbdistcodename}",
      repository => 'main',
      key        => '58118E89F3A912897C070ADBF76221572C52609D',
      key_url    => 'https://apt.dockerproject.org/gpg';
    }
  }
  default: {}
  }

}