summaryrefslogtreecommitdiff
path: root/manifests/repo.pp
blob: d9d43ec0d724f3b2a36693d7de70293fad541609 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# add upstream repositories of torproject
class tor::repo (
  $ensure      = present,
  $source_name = 'torproject.org',
  $include_src = false,
) {
  case $::osfamily {
    'Debian': {
      $key      = '886DDD89'
      $location = 'https://deb.torproject.org/torproject.org/'
      class { 'tor::repo::debian': }
    }
    'RedHat': {
      # no need as EPEL is the relevant reference
    }
    default: {
      fail("Unsupported managed repository for osfamily: ${::osfamily}, operatingsystem: ${::operatingsystem}, module ${module_name} currently only supports managing repos for osfamily Debian and Ubuntu") # lint:ignore:80chars
    }
  }
}