aboutsummaryrefslogtreecommitdiff
path: root/manifests/repo.pp
blob: 3c33002082e3b917459941330fc00bab664f8906 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class tor::repo (
  $ensure      = present,
  $source_name = 'torproject.org',
  $include_src = false,
) {
  case $::osfamily {
    'Debian': {
      $key      = 'A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89'
      $location = 'https://deb.torproject.org/torproject.org/'
      class { 'tor::repo::debian': }
    }
    default: {
      fail("Unsupported managed repository for osfamily: ${::osfamily}, operatingsystem: ${::operatingsystem}, module ${module_name} currently only supports managing repos for osfamily Debian and Ubuntu")
    }
  }
}